LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview optimization of memory allocation

Solved!
Go to solution

Never thought while setting myself out on a goal to put together a labview application that I need to be a computer science expert! Yet I am always supported here on this forum, so thank you all and here comes another one!

 

I have developed a large application which calls subvis dynamically. Every time a dynamically called subvi is closed and another one is loaded, the memory of the previous subvi is not released. So consequently I could see in resource manager that my 'physically used' RAM memory keep creeping up, getting close to the installed memory of 8 GB.

 

All I want is when I close a dynamically called subvi, all memory that it occupied of RAM is released and all its data is sort of dumped out of RAM. Is this possible? Or I am just being silly!

 

Cheers

K Waris

ATE and Labview Consultant
https://www.easybodge.com
0 Kudos
Message 1 of 4
(2,894 Views)

Can you post a picture of that part of the code?

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7
0 Kudos
Message 2 of 4
(2,878 Views)

Typically LabVIEW is pretty good at returning memory back to the OS. Reference types are a different story - it depends on the VI hierarchy as to whether memory is reclaimed. How are you calling your VIs dynamically? Do you have an example / source to show us?

0 Kudos
Message 3 of 4
(2,876 Views)
Solution
Accepted by k-waris

Have you tried the Request deallocation function?

Message 4 of 4
(2,870 Views)