LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

memory management

Good morning,
I'm trying to optimize the memory management of a program for statistical analysis of 2 and 3 dimensions arrays that uses different front panels, accessible through a main front panel. The program works with files with size of 300 MB and after few operations the program reaches the memory limit and crashes. I improved the situation by using the "request deallocation" but I still can not use some parts of my program. The program has been set ( I didn't written it, but I have to improve it) with a massive use of local and global variable that generates,  as far as I know (using "tool>profile>allocation arrays"), a memory allocation every time there is a local/global variable in order to create the copy of the data. How can I improve memory management? Is rewrite the program the only solution?
greetings
Paolo

0 Kudos
Message 1 of 2
(2,204 Views)

Hi Paolo,

 

you can improve your program (in terms of memory usage) by removing globals and locals. So you need to rewrite (atleast parts of it)!

 

There is a KnowledgeBase article on handling large datasets, search for it!

Best regards,
GerdW


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