I'm doing buffered period measurement with a 6602. I start the task, then I would like to have the DAQmx Read task take place in a while loop so that I can update indicators with period measurements as they are coming in. My issue is that it seems like every Read task causes one period measurement to be skipped. For example, I can set up a function generator to output a burst of 101 cycles. If I set my Read task to read 100 samples (via wiring 100 to the "number of samples per channel" input), it will complete as expected and output an array of 100 periods. If I set the Read task to only read 1 sample, however, it will only execute 50 times. Likewise, if I set the Read task to read 10 samples, it will only execute 90 times.
I've been trying to use the AvailSampPerChan and TotalSampPerChanAquired properties to troubleshoot and see how many periods are actually in the buffer, but those properties always show 0. I also am not able to use the Read (it just times out) in any other combination of RelativeTo and Offset property values besides CurrentReadPos and 0 respectively. What am I doing wrong?
Thanks,
David