Showing results for 
Search instead for 
Did you mean: 

TDMS write performance

Go to solution

You do NOT want to use the Flush Queue in an RT system.  It actually clears out the memory in the queue, adding lag to your system.  Instead, you just want to dequeue all of the items.  I recommend limiting how many items to dequeue by using a FOR loop.


Something like this is what I recommend.  Note: In just the time of typing this up, I realized some issues with this: 1) You will want to use a conditional indexing tunnel so that you do not add items to the array if the queue timed out. 2) You may need to transpose that 2D array to get it into your TDMS file correctly.

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
Message 11 of 11