LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to reduce the allocated memory?

Hi,
 
I use a deployed Teststand 3.1 Sequence on a Win2000 system with Labview Run-Time Engine 7.1 to measure the system behavior during a one week qualification test. Each minute I take measurements of various voltages and digital signals using a NI6229 PCI card. These measurements are saved with on-the-fly report generation and  the activated "conserve memory" option.
Looking at the Windows task manager during runtime, you see a permanent increase of the allocated memory. After 13h there are about 750MB of 1GB RAM used and the sequence is interrupted by an error "can't access Labview run-time DLL ...".
 
Does anyone knows why there is so much memory allocated and how to reduce it?
 
In my opinion, there is a connection between the Labview run-time DLL error and the extensive use of the system memory.
 
Best regards,
Thomas
0 Kudos
Message 1 of 2
(2,556 Views)
Hello Judge,

I'm not familiar with TestStand, but this behaviour sounds like a typical "collect data in an array" problem. Somewhere in your program you (probably) collect data in an array (or similar buffer like shift registers) and you do not erase this data. So over time the arrays grow and grow and grow giving you 'out of memory' messages...

Best regards,
GerdW


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