| Data Acquisition Toolbox | Search  Help Desk |
| TriggerDelay | See Also |
TriggerDelay specifies the delay value for data logging.
Both pretriggers and postriggers can be defined. Pretriggers are specified with a negative TriggerDelay value and postriggers are specified with a positive TriggerDelay value. Triggers can be delayed in units of time or samples with the TriggerDelayUnits property. Pretriggers are not defined when TriggerType is Immediate or HWDigital (National Instruments only).
Pretrigger samples are included as part of the total samples acquired per trigger as specified by the SamplesPerTrigger property. For example, if SamplesPerTrigger is set to 1000, TriggerDelay = -100, and TriggerDelayUnits is set to Samples, then 100 samples are logged before the trigger event and 900 samples are logged after the trigger event.
If sample-time pairs are returned to the workspace with the getdata function, then pretriggered samples are identified with negative time values.
Characteristics
| Device Objects | AI |
| Class | Common |
| Access | Read/write |
| Data Type | Double |
| Modify while Running | No |
Values
The default value is zero.See Also
Properties
SamplesPerTrigger, TriggerDelayUnits