> Hence, there vill be two copies of the same vi:s i parallel, one in
> the dir and one in the llb. Is there a way of forcing LabVIEW to load
> the vi:s from the dir:s, so that we can be sure to get the latest
> versions?
> 

When loading subVIs, LV first looks in memory, then in the location 
specified in the caller, then it uses the search path to try and locate 
it.  Honestly, most cross-links happen because the VI is already in 
memory.  In LV7, and possibly in LV6.1, LV will give a warning message 
after load saying that a VI was loaded from a location different than 
what was expected.  When this happens, unload the VIs without saving, 
unload the things that were already in memory, then load again.  If you 
save, then the callers will now expect to find the callee in the new and 
incorrect location.

To get rid of the search path, go to Tools>>Options, on the paths page, 
and empty out the search path list.  This will be inconvenient if you 
ever rearrange things, and you might find that <founddir> is convenient 
since it will represent places that other VIs were found.  This means 
that if you rename a directory, you can show LV the new location once 
during a load, and it will find all of the other VIs that are in the 
directory.

Greg McKaskle


Reply via email to