LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview's memory usage is increasing slowly but continuosly during runtime

Solved!
Go to solution

here are some VIs

  • the main VI
  • the "GetBufferIntervall" VI
  • the "SetDataBuffer" VI
  • the "TruncateBuffer" VI (this VI uses the 2 former mentioned VIs)

 

 

0 Kudos
Message 11 of 16
(2,759 Views)

I already tried to disable the VI that adds new data to the buffer. But the problem persisted. It's interesting to note that the main VI itself occupies so much memory. The VI that contains the buffer just needs about 20MB of memory.

 

Regards,

eme

0 Kudos
Message 12 of 16
(2,746 Views)
I discovered another strange thing. When I minimize the application and immediately maximize it again memory usage goes sometimes (not every time) down to 80MB. Afterward memory usages continues increasing again. Regards, eme
0 Kudos
Message 13 of 16
(2,718 Views)

Hi eme,

 

your VIs are nearly worthless without all those missing subVIs and LVOOP definitions...

 

You have several graphs in your VIs. You know the have their own memory buffer (as all indicators do have)?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 16
(2,707 Views)

Hello,

 

here is the whole source code. I hope you'll see the problem.

Thank you a lot in advance. I'm happy for every hint.

 

Regards,

eme

0 Kudos
Message 15 of 16
(2,684 Views)
Solution
Accepted by topic author eme

Here is the (very simple) solution so far:

 

As Paulo said all the memory problems were caused by charts. The chart history length was set to 1024. When you connect a scalar datatype to the chart this means that 1024 data points will be stored. However when you connect a waveform to the chart this means that 1024 waveforms will be stored (for further reference see Charts: Scalar vs. Waveform). Each waveform consists of several datapoints. Altogether this makes a huge amount of data. I reduced the chart's buffer size to 10. So only the last 10 waveform added will be stored. Now my memory usage is not increasing any more.

 

Thank you a lot!

 

Message 16 of 16
(2,663 Views)