Run VI Method

Inherits from VI Methods.

Starts the VI execution, similar to the Run button. This is significantly different from calling a VI in that the current values of all front panel controls are used for execution (no parameters are passed). This method also ignores the Show FP on Call property of a VI and the Close After Call property. Refer to the examples\viserver\runvi.llb for an example of using the Run VI method.

The following table lists the parameters for this method.

ParametersDescription
Wait until doneSpecifies whether or not to wait until the VI completes execution before exiting this function. Default is FALSE.
Auto Dispose RefIf TRUE, the target VI detaches the reference from the main VI. When the target VI finishes executing, LabVIEW automatically disposes the reference, along with the parallel data space.

The following table lists the flags for this method.

Is settable when the VI is runningNo
Requires the block diagram to be loadedNo
Is available on local LabVIEW onlyNo
Requires the front panel to be loadedNo
Must wait until user interface is idleYes
Is available with control VIsNo
Is available with global VIsNo
Is available with strict type definitionsNo
Is available with polymorphic VIsNo
Available in Run-Time EngineYes (Read/Write)