LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i close a packed library reference

Hey guys.

 

I'm trying to open a reference to all the vi's of a packed labrary, I didn't bother to run the vi's after I opened the reference, I just closed the reference, but I noticed that my memory wasn't freed up, I think it might be because I'm not freeing up the packed library, but I can't find out where I can free it up or maybe it's because of something else that prevents me from freeing up the memory.

 

MapleBay_2-1736938577651.png

Run Result

 

MapleBay_0-1736937934936.png

"Main"

MapleBay_1-1736938278418.png

"Load VI From Lvlibp"

 

The Get Memory Usage VI is called "kernel32.dll/GlobalMemoryStatusEx" library to get free memory.

 

 

0 Kudos
Message 1 of 7
(338 Views)

It depends, how memory manager implemented internally and which value returned from this function.

Try to use VMMap from SysInternals instead to get more accurate and detailed footprint of the memory.

0 Kudos
Message 2 of 7
(328 Views)

LV likes to hold on to memory in case it needs it again, don't worry about it.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 7
(299 Views)

Function "Get Memory Status.vi" from the Memory Control palette has an output "memory allocated for LabVIEW". In the help, it says: "Returns the amount of physical memory that the LabVIEW process uses. [...]".

 

I've done a quick test and it seems to give coherent results:

raphschru_2-1736982850602.png

 

Regards,

Raphaël

0 Kudos
Message 4 of 7
(268 Views)

Thank for your advice.

I will use it to monitor my memory status.

0 Kudos
Message 5 of 7
(258 Views)

Thanks for your response.

I would like to prioritize freeing up the original space before my new memory usage, because LabVIEW consistently fills up my application with memory, which I think can be and its something that affects the user experience.

MapleBay

0 Kudos
Message 6 of 7
(256 Views)

Thanks,I using "Get Memory Status" to be my memory monitor. But I can't to get the same result.

MapleBay_0-1736992311834.pngMapleBay_1-1736992329452.png

 

And when I close my VI or project, LabVIEW still won't free my memory until I close LabVIEW!

 

MapleBay

 

0 Kudos
Message 7 of 7
(254 Views)