From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

DAQmx Trigger Start Delay Property Node Using NI-DAQmx for LabVIEW NXG

Code and Documents

Attachment

Overview

This example performs a simultaneous analog output generation and analog input acquisition utilizing the DAQmx Trigger Start Delay property node using NI-DAQmx with support for LabVIEW NXG.

Description

The acquisition is triggered off the start of the analog output task after a delay of 10 ms. This is done using the DAQmx Trigger "Start Delay" property node. The analog output and input operations are running on their own independent clocks, which can be set to different rates.

Such a delay could be useful when data is not expected to become significant until a certain amount of time after the trigger. In a stimulus-response application, for example, the acquisition data is not significant until the UUT has had enough time to respond to the stimulus.

Hardware and Software Requirements

  • LabVIEW NXG 1.0 or compatible
  • NI-DAQmx 17.0 or compatible
  • Hardware with both AI and AO capabilities (simulated or physical)

Steps to Implement or Execute Code

1. Select the appropriate Input Physical Channel and Output Physical Channel that correspond with the physical wiring on your device.
2. Set the AI Rate to determine the sample rate of acquisition.
Note: This should be at least twice the frequency of the signal being generated.
3. Select the AO Rate to determine the rate of generation.
4. Select what type of signal to generate and the signal parameters.

Additional Information or References

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors