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
(692 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
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 2
(681 Views)