VI Call Configuration Dialog Box

Right-click a subVI and select Call Setup from the shortcut menu to display this dialog box.

Use this dialog box to configure when to load a subVI. This dialog box is available only for VIs open in an application instance that supports VI Server calls—not for functions, Express VIs, polymorphic VIs, or VIs open in an application instance that does not support VI Server calls, such as FPGA targets.

This dialog box includes the following components:

Load with callers—Loads the subVI at the same time the caller VI loads. This behavior is identical to how a subVI loads.

Reload for each call—Loads the subVI when the caller VI makes the call to the subVI if the subVI is not already in memory. This option does not guarantee that the subVI stays in memory after the call.

Load and retain on first call—Loads the subVI only the first time the caller VI makes the call to the subVI. If you have a large caller VI, you can save load time and memory by selecting Load and retain on first call. When you select this option, the subVI does not load until the caller VI needs it, and you can release the subVI from memory after the operation completes.

Note If you select the Reload for each call option or the Load and retain on first call option, LabVIEW continues to load the subVI if the block diagram of the caller VI is in memory. If you open the caller VI in edit mode, LabVIEW loads the block diagram of the caller VI and therefore loads the subVI as well. To avoid loading the subVI, do not open the block diagram of the caller VI. Call the caller VI as a subVI, and close the front panel window and block diagram of the caller VI.

Selecting Reload for each call or Load and retain on first call replaces the subVI with a Call by Reference node that is configured to call the subVI. Symbols on the Call by Reference node correspond to the mode that you select. If you choose either of these options you will no longer be able to find the subVI. These options remove the static link to the subVI.