@tecno40 wrote:
Is the issue with this methodology that eventually the buffer will fill up and dump the data?
That is exactly what is happening.
As far as your code, I say you are making things too complicated. I recommend just reading 20kS (100ms worth) and then multiply your "seconds to acquire" by 10 to get your number of loops to perform.
Some other notes:
1. I don't think you want a 100 second timeout on the DAQmx Read. If you follow my advice above, it should be more like 1 second.
2. Use Build Array instead of Insert Into Array.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5