Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to switch USB-6008 between digital input and output modes

Hi I have been following the examples of setting a specific port to either inout or output using the DAQmxCreateDIChan() or DAQmxCreateDOChan() calls. What I now want to do, is switch betwen inout to output mode and back again.
 
DAQmxCreateDOChan()
DAQmxWriteDigitalLines()
// do something
//switch to input
DAQmxReadDigitalU32()
// switch back to output
 
I can't seem to find any calls or discussions on this.
 
rjmiller
0 Kudos
Message 1 of 3
(2,288 Views)
Hi RJM,
 
If you want to be able to switch your digital line between input and output, then you will need to use the Tristate Property. There is another discussion forum with more detailed information about using this property and I believe that you have already seen it. I am going to post the link in case anyone else wants to see the other forum as well: Tristate Property Discussion Forum. Reddog's post is very informative.
 
Regards,
Hal L.
0 Kudos
Message 2 of 3
(2,267 Views)

Yup, I had posted my Q before I found the related on e hours later.

 

rjmiller

0 Kudos
Message 3 of 3
(2,259 Views)