From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS write performance

Solved!
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.


GCentral
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
(747 Views)