Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NIDAQmx 17.6+,can't distinguish which channel the data comes from

Hello guys:

    I am trying to create a task to read several analog input at the same time.  With the following code,the data I received will be saved in parameter Sdata;But the data comes from multiple channels and I can't  Distinguish which channel the data comes from.Is there any method likes "key--value"

or any other functions?

Thanks

And finally,please regard me as my English is so poor;

 

*****************************

int32 read=0;
float64 Sdata[6000];

DAQmxReadAnalogF64(taskHandle,1000,10.0,DAQmx_Val_GroupByScanNumber,Sdata,6000,&read,NULL)

*****************************

 

Best

0 Kudos
Message 1 of 2
(2,139 Views)

Hi,

I think this example will be useful:

https://forums.ni.com/t5/Example-Programs/Efficiently-Acquire-Signals-and-Write-to-a-Spreadsheet/ta-...

It saves data from each channel to a different column.CSV Capture.PNG

 

 

 

0 Kudos
Message 2 of 2
(2,109 Views)