Hello
As the title suggests I think I have a memory problem. I wrote a VI in LabVIEW 2017 to process data generated from a scientific instrument. This VI does not interact with any hardware, so it's purely a software VI. Unfortunately I cannot show the code because it is proprietary, but I can show some screenshots and I think describing the problem might be enough.
The VI lets a user load a data set into the program and interact with it, correct for noise, outliers, ect. It can also load multiple data sets together which allows for better correction of noise, outliers, ect. Each data set is roughly 2000x300 floating point numbers and when I load 300 or so data sets I have the following issues I'm hoping to address:
1) it takes a very long time to load.
Each data set is a text file which I'm loading into an array with "Read delimited spreadsheet". Then I display them on one graph and change the line colors to black and the symbol to a hollow circle. 20 or so data sets takes about 8 seconds to load, which is no problem. 300 data sets takes forever. The loading part is probably as fast as it can be, but the changing line color takes almost just as long as the loading because I have to do it for every curve. I there a way to set the line color and symbol before loading multiple curves, that will stay for every new curve loaded?
2) When I clear the data I still show lots of memory being used.
I think I'm clearing the data, but when I do, task manager still shows most of my ram being used (my laptop has 12GB ram). Only when I stop the VI does my ram usage go back to normal. Is there something I should be doing to clear a variable and clear a graph other than writing an empty set to them? For reference 300 data sets loaded as double floats take about 5GB of memory.
Thank you in advance for any help!
1.png shows one data set loaded
2.png shows multiple data sets loaded
3.png shows multiple data sets after some processing
4.png shows my clear data function.