Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 203062

Re: How do I create a start/stop button for each separate while loop within my program, when each of them does a different task?

$
0
0

Urgh. The quoting interface on these forums is so error prone - I just saw I deleted my section 2 response when trimming quotes before. Oops... I'll try remember what I wrote...

 


 wrote:

2.Also, sometimes

 "Memory is full" issue Comes up: the top Level VI saving.vi was stopped at Array to spreadsheet string  A2T on the block diagram

How to optimize the Memory ?

 


It seems like you're logging quite a lot of data - does it have to be in a text file? If you can use binary or TDMS instead, that might be helpful for you.

TDMS is a binary file with a specific format specified by NI that is well suited to storing time-series data (i.e. how something changes over time).

 

If you can use a binary file format instead of the text file you're currently logging, you'll get the following benefits:

  • You save a lot of disk space
  • You can store more accurate data
  • You don't need to convert to strings
  • It will probably write and read the file much faster (but I'm not sure how to quantify "much faster" without testing)

If the dataset is just too large even without the string conversions, or if you must use a text file, then you could consider using a smaller data chunk (i.e. dequeue more often, smaller blocks). This will allow your system to write to disk and forget the data faster (assuming you're not keeping it all in memory for the graph as I described in my first response, which should have included some of this...)


Viewing all articles
Browse latest Browse all 203062

Trending Articles



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