Hi,
I'm acquiring a fixed number of samples from 2 analog channels like this:
...
DAQmxCreateAIVoltageChan(task, "/dev2/ai0:1', "foo", DAQmx_Val_RSE, minVoltage, maxVoltage, DAQmx_Val_Volt, NULL);
DAQmxCfgSampClkTIming(task, NULL, smpFrequency, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, nSamples);
// task is started here
DAQmxReadAnalogF64(task, nSamples, TIMEOUT, DAQmx_Val_GroupByChannel, buffer, nSamples*2, &gotSamples, NULL);
"buffer" is big enough to hold nSamples*2 samples.
If "gotSamples" is less than "nSamples" for whatever reason,
where will the data acquired from the second channel
be in "buffer"? I'm guessing that the data acquired from the second channel starts at "buffer[nSamples]" and
not at
"buffer[gotSamples]".
If one of you gurus out there confirm this, I'll greatly appreciate it.
Thanks,
Chandan