To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This code allows users to set up a trigger in software. This code can be useful for devices that do not have hardware analog triggers.
Description
The VI will configure a digital and analog task to any DAQ device. The program then starts the analog task to begin acquisition. The data that is acquired sample by sample is compared to the trigger level set. Once the trigger level is met the digital task will begin and write a single value out to a line on the device and stop the task.
Note: This VI uses software timing to compare and trigger the digital output. This response time of this VI to write the value will be slower than any hardware analog trigger and most likely will not execute in the same amount of time each time the VI is executed. This VI is meant to give users an analog trigger for devices that do not have hardware analog triggers and do not need high speed in their execution of the digital write.
Requirements
Software
Hardware
Any DAQ device with analog input. Most useful for those without a hardware configurable analog trigger
Steps to Implement or Execute Code
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.