ccusb provides a readout module that allows you to configure many of the resources of the CCUSB as well as providing the capability of rerading the module internal scalers. Note that owing to the way the framework operates, you must include CCUSB modules in either the event or scaler stack in order to configure them, even if you don't intend to readout the scalers.
For the configuration options see OPTIONS below.
The resources you can control are the module internal gate and delay generators, the module internal scalers, the meaning of the Module NIM outputs and inputs and the meaning of the front panel LED displays.
-gdgasourceDefines the start of the module internal gate and delay generator A. This can be one of: disabled, in1, in2, in3, event, eventend, usbtrigger, or pulser. Sections 3.3.6 and 3.3.7 of the CCUSB manual provide more information about the Gate and delay generators.
This option defaults to disabled
-gdgbsource
                        Same as -gdgasource, however the
                        B gate and delay generator start is set.  The same set
                        of values accepted for -gdgasource
                        are accepted for this option.
                    
-gdgawidthSets the output width of the A Gate and delay generator. This can be a value from 0 through 0xffff and is in 10ns units.
-gdgbwidthSets the output width of the B gate and delay generator.
-gdgadelaySets the output delay on the A gdg output. This can be in the range 0 through 0xffffffff. It winds up setting both a field in the DGG_A register and the DGG_Ext register.
-gdgbdelaySets the output delay on the B gdg output.
-red
                        Sets the signal that is reflected on the red LED on the
                        module front panel.  This is modified by the
                        -redinvert and -redlatch
                        options described below.
                    
Legal values are event, busy, usboutnotempty and usbinnotfull
-redinvertThis boolean parameter, if true inverts the sense of the red front panel LED.
If true, this boolean parameter latches the red front panel LED on once the condition required to ligth it is met.
-green
                        This enumerated parmeter, together with
                        -greeninvert and -greenlatch,
                        determines when the green LED should be lit.  Valid values
                        are:
                        acquire, nimi1, nimi2, usbinnotemtpy
                        and usbtrigger.
                    
-greeninvertInverts the sense of the green front panel LED.
-greenlatchLatches the green LED on when the condition to light it is met.
-yellow
                        Together with -yellowinvert and
                        -yellowlatch when the yellow front
                        panel LED is lit.  This can be one of the following values:
                        nimi1, nimi3, busy or
                        usbinfifionotempty.
                    
-scalaraDefines what makes the A scaler count. This can have any of the following values: disabled, nimi1, nimi2, nimi3, event, carryb, dgga or dggb. The carryb increments the scaler when the B scale overflows. This provides the ability to make the A scaler the most significant 24 bits of a 48 bit scaler with the B scaler the least significant 24 bits.
-scalerbDefines what makes scaler B count. This can have any of the following values: disabled, nimi1, nimi2, nimi3, event, carrya, dgga or dggb. The carrya increments the scaler when the A scale overflows. This provides the ability to make the B scaler the most significant 24 bits of a 48 bit scaler with the A scaler the least significant 24 bits.
-out1
                        Together with -out1invert
                        and -out1latch determines the condition
                        that drives the O1 NIM output.  This can be one of the
                        following values:
                        busy, event, gdga or
                        gdgb.
                    
-out1invertInverts the sense of the O1 NIM output.
-out1latchLatches the state of O1 once the condition needed to make it a logic true has been detected.
-out2
                        Together with -out2invert and
                        -out2latch determines when the
                        NIM O2 signal is asserted.  This can be one of the
                        following values:
                        acquire, event, gdga,  or
                        gdgb.
                    
-out2invertInverts the sense of the O2 NIM output.
-out2latch
                        Latches the NIM O2 state when the condition to assert
                        it has been met.  This condition is determined by
                        both -out2 and
                        -out2invert.
                    
-out3
                        Together with -out3invert
                        and -out3latch determines the behavior
                        of the NIM O3 output.  This can be any of the following
                        values: busyend, busy, gdga,  or
                        gdgb.
                    
-o3invertInverts the condition that asserts O3.
-o3latchLatches O3 in the asserted state when the condition to assert it is met.
-readscalersBoolean that when true enables the readout of the A and B scalers in the stack this module is in. The A scaler is read first then the B scaler.
-incremental
                        This boolean parameters only matters when
                        -readscalers is true.  It causes
                        the scalers to be cleared once they have been read.
                        Note that in general some counts may be lost as there
                        is no way to atomically read and clear the scaler counters.
                    
-bulktransfermodeThis enum parameter provides user control over the criteria for a usb bulk transfers. This can be any of the following: default, nbuffers, timeout. The default provides the default behavior of timeout of 1 second. The nbuffers nbuffers allows the user to specify a number of data buffers to be bundled in a given USB bulk write. The user must specify the -nbuffers2transfer options. The timeout generate a packet end after the time specified for the timeout. The user must specify the -bulktransfertimeout option for this mode.
-nbuffers2transferThis integer parameter specifies the number of buffers to bundle in a given usb bulk write. This must be a number between 1 and 255.
-bulktransfertimeoutSpecifies the timeout value for a the usb bulk transfer mode. Values are between 0 and 15 and specify the number of seconds beyond 1 second to timeout.
-bufferlengthEnum that specifies the buffer size used by the CCUSB. This can be any of the following values: 4096, 2048, 1024, 512, 256, 128, 64, singleevent
-forcescalerdumpWhen true, this causes the CC-USB to flush its buffers after every scaler stack execution. It is very useful when there is either a very low data rate or only a scaler stack defined. The default value is false.
-mixedbufferWhen true, this allows the CC-USB to put scaler-type data and event-type data in the same buffer. This defaults to false.
-triggerlatchWhen true, the execution of a scaler stack causes the the event stack to execute immediately at completion. The default value is false.
-printconfigWhen true, all register values for the CC-USB are read and printed at the completion of the initialization stage. This is useful for inspecting the exact register contents used for an ongoing run. The default value is false.