LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Who to change Digital Input to Digital Output in same TASK in DAQmx with PCI-6509

Hi !

I have PCI-6509 and in my aplication I need to change ONE BIT from Input to Output and Back...
I Craete a task and I can't change the bit in the task from Input to Output OR Output to input.
I try to stop the task and them chage the direction and it did'nt work.
Do I need to clear all the task & create it agian each time that I want to change dirction?
Can I do 2 differnt task one is control the BIT input and the other one contol the BIT output?
Please HELP !
Thanks,
Aric Miller
0 Kudos
Message 1 of 2
(3,089 Views)
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

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