Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to perform bidirectional i/o using a pci-6534.The problem is that i need to use the same lines for i/p and o/p. is that possible?

I want to perform bidirectional i/o using a pci-6534.The problem is that i need to use the same lines for i/p and o/p. is that possible? And if it is how an i doing this?
0 Kudos
Message 1 of 3
(3,277 Views)
Hi I Pant,

The idea that crossed my mind was to tie each of the lines coming from/going to "your device" to two of the DIO lines. Configure one these two ports as input, the other as output.

When you want to read the state of the line, read from the line configured as input. Similarly, use the other port when it is time to write.

Provided "your device" uses tri-state drivers/receivers, or can be used in a "wired-OR" configuration, this may work.

What is "your device"?

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 3
(3,277 Views)
I Pant

I agree with Ben, if you can use one group of ports for input and the other group for output would be your best bet. The only way to use the same port for bidirectional transfers is to reconfigure the board when you change from input to output.

Brian
0 Kudos
Message 3 of 3
(3,277 Views)