To download NI software, including the products shown below, visit ni.com/downloads.
This VI allows for the user to individually toggle the output of 8 lines of the same port between HIGH, LOW, and FLOAT (Tristate).
Tristate outputs have three states, as the name implies. The states are LOW, HIGH and FLOAT. Floating the tristate output is also referred to as tristating or going into a high-impedance state. Tristate devices are very useful when you want to allow more than one device to drive the same signal, but you want to ensure that only one device is driving the signal at any time.
This example uses the DAQmx Channel property node to select a channel and toggle its Tristate status. This is iterated for the number of lines in the array of channel names provided to the for loop.
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.