LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

memory deallocation of globals

Dear all,

I am using tab control to switch between different front panels of diss VIs.

In one VI, i am using global variable for data allocation. 

i want to know when i close this Vi, and go to front panel of other VI, will the memory allocated by the Global(in first VI) be deallocated or will it still be there in memory ?

 

Thanks,

Ritesh

0 Kudos
Message 1 of 3
(2,523 Views)
It should still be take up the same amount of memory until you close the program OR assign the global variable to something else (like an empty array).
-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 2 of 3
(2,490 Views)

I don't have LabVIEW in front of me, but there is a download here that may be of interest to you.

http://zone.ni.com/devzone/cda/epd/p/id/4545

 

From a developer's perspective, is a Global not basically treated as a subVI with no block diagram?  So, wouldn't LV release its memory space when its last caller closes?  I actually went looking for a "Show All VIs" VI for you, and stumbled upon the one above.  Hope it helps...

Message Edited by LabBEAN on 02-14-2009 11:01 PM

Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 3 of 3
(2,477 Views)