Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69504

Write one line of numbers to a text-file or write multiple lines each iteration?

$
0
0

Hi,

 

I'm currently working on an application that has a few different while-loops running at the same time. One loop acquires the data (DAQloop), another shows the data (raw and processed data) on graphs (Graphsloop) and yet another stores the data in an open ascii text file (Storageloop).

 

The data is passed on from the DAQloop to the Storageloop through a queue. At this moment I let the Storageloop take up the first element of the queue (the oldest) to store it in the textfile each iteration. I was wondering however whether it would be better to let the Storageloop take up all the elements currently available in the queue to store it in one go.

 

Does anybody have any ideas on this? Which would be better performancewise? The textfile is already opened and is just passed on as a refnum.

 

Thx!


Viewing all articles
Browse latest Browse all 69504

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>