VI class/Run VI method

From LabVIEW Wiki
Jump to: navigation, search
VI Server Method Information
Method ID 3EB
Scope Basic Development Environment
Data Name Run VI
Short Name* Run VI
Long Name* Run VI
* Displayed here in English. Short and Long names appear in the language of the LabVIEW IDE.
Owning Class ID 2
Owning Class Name VI Class
Return Data Type No return value
Invoke Node Run VI
Available in Real-Time Operating SystemYes
Available in Run-Time EngineYes (Read/Write)
Available with control VIsNo
Available with global VIsNo
Available with polymorphic VIsNo
Available with strict type definitionsNo
Loads the block diagram into memoryNo
Loads the front panel into memoryNo
Must wait until user interface is idleYes
Need to authenticate before useNo
Remote access allowedYes
Settable when the VI is runningYes

Starts the VI execution, similar to the Run button. This method is different than calling a VI because it uses the current values of all front panel controls for execution rather than using data passed in through parameters. This method also ignores the Execution:Show Front Panel On Call property of a VI and the Execution:Close After Call property.

Note This method requires the VI to have a front panel. If you are using the Application Builder, make sure you do not remove the front panel.

You cannot use this method to run a VI that is already reserved for execution by another VI.

If you use the Open VI Reference function and wire the type specifier VI Refnum input, you cannot use the reference returned by the function with this method. Instead, you must use the Call By Reference node.

If you want to use this method with a reentrant VI, set the options parameter to 0x08 in the Open VI Reference function to prepare the VI for reentrant run.

Parameters

Data type Name Required Description
Boolean Wait Until Done No Specifies whether to wait until the VI completes execution before the Invoke Node continues executing. The default is TRUE.
Boolean Auto Dispose Reference No

Uses

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links