Trigger Target Setup - DLS-Controls-Private-org/MBF-docs GitHub Wiki
Here we control the triggers for a single target. Setting up trigger consists of the following stages:
- First the set of available trigger inputs should be configured so that the desired input will fire the trigger.
- Secondly, the trigger must be armed.
- The trigger will now fire as soon as any of the configured input events is seen.
- Finally a programmable delay is applied before the target is activated.
All the PVs on this screen are prefixed with$(device):$(axis) and $(dest) identifies the trigger destination, one of SEQ or MEM.
Arming
Arming can be shared with other triggers, or can be independent. For shared arming see Trigger Configuration for details.
Title | PV | Description |
---|---|---|
:TRG:$(dest):MODE_S | This controls when this target is armed, and can be set to one of three values: |
Value | Description |
---|---|
One Shot | After arming and firing the trigger will remain idle. |
Rearm | After arming and firing the trigger will automatically rearm. |
Shared | Arming of the trigger will be managed by the shared trigger mode, see Trigger Configuration and:TRG:MODE_S. |
| | Arm | :TRG:$(dest):ARM_S | This will arm the trigger so long as the trigger state is idle. | | Disarm | :TRG:$(dest):DISARM_S | This will disarm the trigger. | | | :TRG:$(dest):STATUS | This indicates the status of this trigger and the controlled target, and can be one of the following values:
Value | Description |
---|---|
Idle | The target is idle, the trigger is ready to be armed. |
Armed | The trigger is waiting for an event. |
Busy | The trigger has been fired, but the controlled target is now busy. For SEQ this means that the sequencer is running, for MEM this means that the memory is still capturing runout. |
Locked | The target is busy waiting for an external readout to complete, the trigger will arm once the readout is done. This is normally a transient state. |
|
The remaining controls are for shared triggers.
Inputs
The status of each available trigger input is shown. See Trigger Configuration for details.
Sources
For each input ($(input) ranging over SOFT, EXT, PM, ADC0, ADC1, SEQ0, SEQ1) the following PVs are provided:
PV | Description |
---|---|
:TRG:$(dest):$(input):EN_S | This is set to "Ignore" or "Enable" and determines whether this input can fire the trigger. |
:TRG:$(dest):$(input):BL_S | This is set to "All" or "Blanking" and determines whether all enabled input events are processed or if the blanking window is used to suppress this trigger source. |
:TRG:$(dest):$(input):HIT | When the trigger fires this PV is updated to indicate whether this input contributed to the trigger firing. |
Trigger Delay
PV | Description |
---|---|
:TRG:$(dest):DELAY_S | This determines a delay in turns from the trigger input being accepted and firing the trigger to the trigger event being delivered to the trigger destination. |