LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use 2 ports od a PCI-1200 as outports using LabWindows?

"I want to use 2 ports of the PCI-1200 DIO ports as output ports.
So I tried and had a problem: Whenever I write to a port using WriteToDigitalPort, the other port will be reset.
Should I congigure the ports at the beginning of the program? If so How do I do it?
(I'm using LabWindows 5.5)"
0 Kudos
Message 1 of 2
(2,823 Views)
I would suggest using the lower level NI-DAQ functions instead of the Easy I/O functions. (You have a lot more flexablity this way.) To configure seperate ports use the function DIG_Prt_Config, then instead of using WriteToDigitalPort, use DIG_OutPort. Here is an example that writes to one port using these NI-DAQ functions. All you need to do to write to two ports is add two lines in; another DIG_Prt_Config and another DIG_Out_Port.

Good luck and let me know if this does not work for you.

Brian
0 Kudos
Message 2 of 2
(2,823 Views)