Subject: Re: Memory Usage of sub-VIs
From: "GINBOX:: Doug_Wilson-2141_EMail " "Doug_Wilson-2141_EMail %GINBOX.decnet"@npt.nuwc.navy.mil
Date: 2 Jul 93 09:39:00 EST



--------------------------------------------------------------------------------
Date: Fri, Jul 2, 1993 @ 7:17:40 AM


Re: Re: Memory Usage of sub-VIs
In response to your letter received Fri, Jul 2, 1993 at 8:00 AM

I am NOT an expert on memory management in LabVIEW.
However, I think you will find that LabVIEW already behaves the way you want it
to. SubVIs allocate local memory while running, but then, as long as their
front panels are not open, deallocate that memory when execution completes. To
see this in operation, run the 'Free Memory Display' VI (it's somewhere on
either ftp.natinst.com or ftp.pica.army.mil). Now, of course, any output
variables from the subVIs that stick around after they execute will have to
remain in memory. Of course, while all this allocation/deallocation is going
on, your main memory is getting fragmented. Eventually, LabVIEW will decide to
try to clean this up ( 2-3 seconds vacation time every now and then).

Doug Wilson
<wilsondh@nl.nuwc.navy.mil>