LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

configure separate lines on a DIO port as input or output

Solved!
Go to solution
Im using an NI DAQmx card (6251) in a LabWindows/CVI environment.

My problem relates to reading an EEPROM, but both its Clock (output from 6251) and Data (input to 6251) lines are on the same physical channel (DIO Port1)

How would I use CVI to configure individual port lines, so that one line (say, Port1.6) is an Output, and another line (say, Port1.7) is an Input.    And therefore not have to keep starting and stoping the NIDaq's read or write operations on the whole port at one time, but just leave each separate line running as a read or write until the operation is completed.

Thanks
0 Kudos
Message 1 of 3
(3,120 Views)
Solution
Accepted by rjohnson
Hey Rob,

On the PCI-6251, you can configure different lines on the same port to be both inputs and outputs using CVI.  I have attached an example that does what you're asking for here: it uses port1, line6 as an output and port1, line7 as an input.

Also, for others reading this post, more information on this topic can be found in this forum post as well.

Best Regards,
Erik
Message 2 of 3
(3,091 Views)
thanks Erik.  got it working just fine.


0 Kudos
Message 3 of 3
(3,065 Views)