Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DIO select direction

Solved!
Go to solution

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

lvrat_0-1652486106170.png

Would just reading the Line0 in LabVIEW release the line?

Thanks!!

 

*************************************************
CLD
*************************************************
0 Kudos
Message 1 of 2
(53 Views)
Solution
Accepted by topic author lvrat

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.

santo_13_0-1652487694790.png

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.

 

-Santhosh
Semiconductor Validation & Production Test
Soliton Technologies
NI CLD, CTD
LabVIEW + TestStand + TestStand Semiconductor Module (2013 - 2020)
NI STS for Mixed signal and RF
Message 2 of 2
(42 Views)