I believe the theory is correct. You might be able to control this using the BufferingConfig and BufferingMode properties.
peekdata - really latest samples? - buffer?
2 次查看(过去 30 天)
显示 更早的评论
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!
Eric
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Schedule Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!