02-26-2019 10:32 PM
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?
02-28-2019 03:08 PM
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.