Hello Aric Miller,
When you create a DAQmx task, you specify at first if it's an input line or output line.
So how do you want to change the direction of the line??
You should create two tasks, one as input and one as output.
But be careful, the PCI-6509 has 12 ports with 8 lines per port that are bi-directional, but each port must configured on a port-by-port basis for input or output.
Please, see the PCI-6509 Help manual in the link below :
http://digital.ni.com/manuals.nsf/webAdvsearch/52FD5F9F0606DCC886256DF80056EADF?OpenDocument&vid=niwc&node=132100_US
Sanaa TAZI
National Instruments France
Sanaa T.
National Instruments France