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.
-gdgasource
Defines 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.
-gdgawidth
Sets the output width of the A Gate and delay generator. This can be a value from 0 through 0xffff and is in 10ns units.
-gdgbwidth
Sets the output width of the B gate and delay generator.
-gdgadelay
Sets 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.
-gdgbdelay
Sets 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
-redinvert
This 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.
-greeninvert
Inverts the sense of the green front panel LED.
-greenlatch
Latches 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.
-scalara
Defines 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.
-scalerb
Defines 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.
-out1invert
Inverts the sense of the O1 NIM output.
-out1latch
Latches 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.
-out2invert
Inverts 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.
-o3invert
Inverts the condition that asserts O3.
-o3latch
Latches O3 in the asserted state when the condition to assert it is met.
-readscalers
Boolean 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.