class="resources"
Method of VI.
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. In the Open VI Reference function, set the options parameter to 0x08 to prepare the VI for reentrant run.
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. Example
| Name | Description | ||
|---|---|---|---|
| Wait until done | Specifies whether to wait until the VI completes execution before exiting this function. The default is TRUE. | ||
| Auto Dispose Ref | If 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 default is FALSE.
|
The following table lists the characteristics of this method.
| Settable when the VI is running | Yes |
| Need to authenticate before use | No |
| Requires the block diagram to be loaded | No |
| Available on local LabVIEW only | No |
| Requires the front panel to be loaded | No |
| Must wait until user interface is idle | Yes |
| Available with control VIs | No |
| Available with global VIs | No |
| Available with strict type definitions | No |
| Available with polymorphic VIs | No |
| Available in Run-Time Engine | Yes (Read/Write) |
Refer to the DateServerUsingReentrantRun VI in the labview\examples\viserver\runvi.llb directory for an example of using the Run VI method.