LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-1200 daq function

Hi,

Does anybody know what daq fuction that performs
the task of sending a binary patern to the digital I/O port.

Example:
If I what do sent 1 to PA0 , 0 to PA1 and 0 to PA2 simultaneously,
Is there a function that do that?

Thanks.
0 Kudos
Message 1 of 2
(3,363 Views)
Have you tried with 'DIG_Out_Prt (short Board, short Port, long Pattern)' ?
This should be useful for you. In your example sending DIG_Out_Prt (1, 0, 1)
should perform your task.
The only problem is that there's not a function that 'reads' the actual
state of an output port, so if the restanting bits of the port are
significant and should not be changed, you must keep trace in your
application of the actual state of all bits.
One simple solution shoul be to maintain a global long to store the state of
the port, then perform bitwise operation to manage individually each output
line and use always DIG_Out_Prt.
Roberto
0 Kudos
Message 2 of 2
(3,363 Views)