12-07-2011 04:34 AM
Hello.
I have a problem with preloading...
I've been using a dummy VI to keep important SubVIs in the memory in labview 10. Didnt even had to run it, just throw its reference into a global var. The SubVI was there, in memory, when some dynamic VI needed it.
After upgrading to labview 11 the memory management apparently changed and that method doesent work anymore. I trie to run the dummy VI continiously, but even if it runs, it's SubVIs are not in memory.
They only load if i have an eye contact with them, AKA open the block diagram.
All SubVIs are set to preload with caller, but they just dont...
Solved! Go to Solution.
12-07-2011 04:53 AM
Try using Static VI references. These should make sure the VIs are loaded into memory.
12-07-2011 05:52 AM
@dan_u wrote:
Try using Static VI references.
I'll try that right away. Will it work if i copy whole program to a new directory?
Static VI references tend to rely on the full path, while my path should remain dynamic... (im calling on the parent VI by relative path, while SubVIs in it are relative path dependent too)
12-07-2011 06:39 AM
Static VI references should be like SubVIs. When you move the whole hierarchy to a new location they should be fine (they work with relative paths normally).