Overview
This VI allows for the user to individually toggle the output of 8 lines of the same port between HIGH, LOW, and FLOAT (Tristate).
Description
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.
Requirements
Software:
- LabVIEW 2010 or compatible
- DAQmx 9.1.5 or compatible
Hardware:
Steps to Implement or Execute Code
- Wire together the lines of two different ports. One will perform Digital Writes and the other will perform Digital Reads.
- Set lines for Write and Read. This example was developed to manipulate 8 lines. Fewer can be used without modification.
- The Digital Write to Lines buttons work as normal boolean toggles.
- The Tristate Toggles enable/disable the FLOAT (Tristate) output to each line.
Additional Information or References
 - FRONT PANEL.png)
.png)
**This document has been updated to meet the current required format for the NI Code Exchange.**