To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This code shows how to trigger an analog voltage output with an analog voltage input range.
Description
This function is accomplished by using two simultaneous while loops each running a continuous DAQmx task. The top loop is the input task and when the input value falls within a range it uses a case structure to set the "Voltage output" local variable. The bottom loop is the output task and it is continuously outputting a voltage which can be set by the front panel or by the logic in the input loop.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**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.