LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set vi call configuration for call by reference node vi

Solved!
Go to solution

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.

0 Kudos
Message 1 of 2
(2,211 Views)
Solution
Accepted by topic author Fixxer

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.


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,197 Views)