peekdata - really latest samples? - buffer?
2 views (last 30 days)
Hello, I'm using an mcc FS1608 AD-Converter to sample analog data input with the DataAcquisitionToolbox and Matlab2011. (Windows XP).
The sample rate is set to 1000 Channels: 6
In a while loop I used peekdata(AI,1) to look at the latest samples acquired. This while loop acquires nearly 2000 peeks per second (which is for sure influenced by the CPU speed). If I add each of these samples to a vector an plot this, one can clearly see, that the data is "grouped": The values are equal for around 110-130 samples (60-70ms), followed by another 110-130 samples (60-70ms) block of (other) equal values and so on.
The engine seems to transfer the data in blocks. As long as the latest block is not filled up yet (which takes around 60-70ms), peekdata takes the latest sample from the second last block.
Is my theory correct? Can I minimize the size of this block in order to peek at the truly latest samples?
Thank you very much for your help!