Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxReadDigitalLines Parameter

I want use the Function DAQmxReadDigitalLines, but I dont know about the Parameters and can´t find a suitable topic in help.
I set the Parameter in this order: 
 
DAQmxReadDigitalLines (th_in, DAQmx_Val_Auto, 10.0, DAQmx_Val_GroupByChannel, data, 1, NULL, NULL, 0);
 
data is an array[8] of uInt8.
The problem is that the Function doesn´t write the Input Lines into the data array.
It will be nice if someone could explain the correctly use of the parameters to me.
 
Thank you
0 Kudos
Message 1 of 2
(4,638 Views)

I´ve found out the solution.
The Array_Size_In_Bytes must be 8 and not 1.

DAQmxReadDigitalLines (th_in, DAQmx_Val_Auto, 10.0, DAQmx_Val_GroupByChannel, data, 8, NULL, NULL, 0);

These are the correct Parameters.

0 Kudos
Message 2 of 2
(4,635 Views)