04-02-2008 08:07 PM
04-03-2008 05:41 PM
Hi Hollister,
Sub-VIs and global variables should be in memory as long as a VI that calls it is open. I have tested this in 8.5, and the VIs are loaded into memory even if the program is not run. You can check the status of memory in LabVIEW by selecting Tools>>Profile>>Performance and Memory.
What is the exact behvioral difference you have seen between the different versions? Does the top level VI remain open the entire time?
Regards,
Lauren
04-03-2008 05:52 PM
I have noticed that the subvi's are not in memory even if the main VI is open.
I know this because when I double click on the subvi I see the LabVIEW GUI opening up all the subvi's.
I forgot to mention that a lot of the code is inside case statements that are hardwired to FALSE. The subvi's are inside the TRUE cases.
Is it possible that LabVIEW is decides that it doesn't need to load the subvi's because the TRUE case can never be executed?
04-04-2008 09:55 AM
Hi Hollister,
With LabVIEW 8 and newer, the application tries to save memory by only loading the necessary subVIs into memory. This means that any VI that cannot be executed at runtime (such as one in a true case that has a false constant wired to it) will not be loaded into memory. Is it possible to modify your program so that the necessary VIs would be loaded according to this new structure?
Regards,
Lauren
04-04-2008 11:15 AM
I can modify the code if this is the only solution. Is there any way to turn off this automatic memory saving feature that was added to LabVIEW 8 and higher?
Memory has not been a problem for me. I would prefer to have the ability to turn this new feature on or off.
04-04-2008 02:56 PM
04-04-2008 03:48 PM - edited 04-04-2008 03:49 PM