Triggering Data AcquisitionTriggering allows for an acquisition or generation to begin when a condition is met. For example, most function generators can output a pulse to notify you that the generation has started. With digital triggering, you can begin acquiring at the precise moment that the digital pulse is received. This module illustrates how to use a digital trigger to start an acquisition in NI LabVIEW software. Step-by-Step ProcedureDownload the Step-by-Step Procedure PDF Before starting this procedure, you need to complete the exercise and use the solution in the Taking a Measurement module. You can also create a numeric control to simulate the data acquisition input.
Note: If the stop button is pressed, and the trigger has not yet been received, the program does not stop unless you press the Abort button. You can convert your DAQ Assistant Express VIs into low-level NI-DAQmx functions by right-clicking the DAQ Assistant and selecting Generate NI-DAQmx Code. The low-level NI-DAQmx API exposes more functionality and customization options for programming. LabVIEW Example Code
Right-click on the above VI snippet and select Save Image As... Locate the file on your hard disk and click and drag the file icon onto your LabVIEW block diagram. LabVIEW automatically generates the code from the VI snippet. For more information, read VI Snippets. Don’t have NI-DAQmx installed on your PC? Module Exercise: Triggering Data AcquisitionDownload the Module Exercise PDF Exercise Goal Required Hardware Things to Consider
Here is an example of what the final signal should look like on a graph indicator: View the exercise solution (Don’t cheat!). Cumulative Exam:
|


