07-08-2010 03:47 AM
As mentioned in the title does anyone know how to set the vi call configuration (Load with callers, Reload for each call, Load and retain on first call) for a dynamically loaded vi via call by reference node?
Thank you.
Solved! Go to Solution.
07-08-2010 05:23 AM
The CBR node is irrelevant in this case, since it already receives a VI reference.
If you're using the Open VI Reference primitive to open this reference, then the VI will be loaded the first time you call the primitive.
If the VI does not leave memory (and you're not configuring it as reentrant), subsequent calls to the OVR prim will return the reference to the first VI you opened. This is equivalent to Load and Retain.
If you do close and reopen the VI reference, it's equivalent to Reload.
If you're using a static VI reference, it's equivalent to Load with callers.
Personally, I have all my subVIs as the default Load with callers.