From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxReadBinaryI16

DAQmxReadBinaryI16 doesn't works as I expected. Am I wrong in understand that  "sampsPerChanRead"  had to be updated after each sample ? I'm using USB6211 and some example in ANSI C code. Everything works fine acquiring 1000 samples but sampsPerChanRead is updated only at the end of DAQmxReadBinaryI16. Is it right?

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

Hi CarlosA1,

 

The "sampsPerChanRead"  returns the actual number of samples read from each channel after each DAQmxReadBinaryI16 call. If you set numSampsPerChan to 1000. So the  DAQmxReadBinaryi16 will deliver you a sample array containing 1000 samples per channel and the sampsPerChanRead  will return 1000 that will surely be number of samples read by channel.

Lincoln

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