LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

flushing element in queue

Solved!
Go to solution

That did it! Writing to a text file must be slow....producer loop was running well at about 200Hz, but the consumer was falling far behind. I was using Write Delimited Spreadsheet and removing that finally gave my chart (from dequeued data in a consumer loop) the "real-time" feel I needed.

0 Kudos
Message 21 of 23
(614 Views)

@GJT wrote:

That did it! Writing to a text file must be slow....producer loop was running well at about 200Hz, but the consumer was falling far behind. I was using Write Delimited Spreadsheet and removing that finally gave my chart (from dequeued data in a consumer loop) the "real-time" feel I needed.


The problem with using the Write Delimited Spreadsheet is that it constantly opens and closes the file.  That is REALLY slow.  If you opened the file before your consumer loop, close the file after the loop, and just used the Write Text File using whatever formatting you needed you might have been able to keep up.


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 22 of 23
(600 Views)

Nailed it~ I moved away from the 'Write Delimited Spreadsheet VI' and used the open file>Write Text File (in the loop)>close file and was able to generate CSV files at high speed. Thanks crossrulz!

0 Kudos
Message 23 of 23
(585 Views)