Event Delays

NI Signal Generator

NI 5402/5406/5412/5421/5422/5441/5442
Event Delays


The NI 5402/5406/5412/5421/5422/5441/5442 signal generators support event delays that can manually delay Marker, Started, and Done events so that they are aligned on a particular Sample clock period.

Delay is applied to the event with respect to the analog output of the signal generator. For example, a delay of 0 Sample clocks aligns the event with the analog output signal, while a delay of +2 Sample clocks causes the event to appear two Sample clock periods after the analog output appears. All event delays are adjusted in increments of Sample clock periods, regardless of the units used to set the delay. For example, if you provide a value for delay with units of seconds, the delay is coerced up to the nearest Sample clock period.

The event delay attributes must be set before waveform generation is initiated. Any changes made to other attributes during waveform generation may change the analog output delay. NI-FGEN does not compensate for this change in the analog output delay, and continues to apply the event delay that you was originally configured.

If an event delay is applied to an event that is being exported to multiple output terminals, NI-FGEN aligns the event on the first terminal you specified.

For more information about setting event delays, refer to the Marker Event Delay property or the NIFGEN_ATTR_MARKER_EVENT_DELAY attribute, the Started Event Delay property or the NIFGEN_ATTR_STARTED_EVENT_DELAY attribute, or the Done Event Delay property or the NIFGEN_ATTR_DONE_EVENT_DELAY attribute.