Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I configure ports for PCI-1200 using LabWindows/CVI?

I want to use 2 ports of the PCI-1200 DIO ports as oup ports. Whenever I write to a port using WriteToDigitalPort, the other port will be reset.
Shoud I congigure the ports at the beginning of the program? If so How do I do it?
(LabWindows 5.5)
0 Kudos
Message 1 of 2
(3,412 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
(3,412 Views)