05-13-2022 07:00 PM
Hello,
I am using DIO-6361. In MAX I can select the direction of the Digital lines from Input to Output and vise versa. How do I do that using LabVIEW?
For example I need to pull Port1/Line0 to low and then release that Line0. In MAX I can release the Line by selecting "All Input".
I use Digital output to pull Port1/Line 0 to Low
Would just reading the Line0 in LabVIEW release the line?
Thanks!!
Solved! Go to Solution.
05-13-2022 07:23 PM
If "release the line" means driving the line back high, you can call another DAQmx write and write a True.
The direction of the line is set by the Task Type you associate the line with, like the create channel function you selected to be a Digital Output.
You cannot change the direction without changing the task type. Whenever you need to change the direction, clear the existing task and create a new task for the new direction.
The NI MAX test panels do the same behind the screen.