LabVIEWAdapter.ReserveLoadedVIsForExec

Syntax

LabVIEWAdapter.ReserveLoadedVIsForExec

Data Type

Boolean

Purpose

Specifies that LabVIEW reserves each VI to run when TestStand loads the VI. This property eliminates the need to use permanent reference VIs for sharing between step modules.

Remarks

When a VI is reserved for execution, references that it creates during execution remain valid until the VI is unreserved. VIs that LabVIEW reserves take less time to call, but you cannot edit them in LabVIEW unless you click the Edit VI button in the Edit LabVIEW VI Call dialog box or select Edit Code from the context menu of the calling step.

TestStand unreserves a VI under the following circumstances:

  • When you select File»Unload All Modules from the File menu.
  • When the VI is unloaded based on a sequence file or step unload options.
  • When you open a VI for editing from within TestStand.

You can create a reference in a VI called by one step in a sequence, use the reference in a VI called by a second step, and close the reference in a third step. For example, you can create a file refnum from Open File, use the reference in Read File or Write File, and close the reference using Close File when you no longer need the reference.

If you set the Unload Option for a step that calls a VI to Unload After Step Executes or Unload When Precondition Fails, the LabVIEW references the step creates might be destroyed on completion of the step. If you do not reserve VIs for execution, you can use the permanent reference VIs to maintain LabVIEW references between steps.

See Also

Edit LabVIEW VI Call dialog box