class="resources" Run VI Method - LabVIEW 7.1 Help - Support - National Instruments
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Run VI Method

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

Parameters

NameDescription
Wait until doneSpecifies whether to wait until the VI completes execution before exiting this function. The default is TRUE.

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 default is FALSE.

Note  If Auto Dispose Ref is TRUE and the method returns an error, LabVIEW still disposes the reference.

Remarks

The following table lists the characteristics of this method.

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

Example

Refer to the DateServerUsingReentrantRun VI in the labview\examples\viserver\runvi.llb directory for an example of using the Run VI method.

 


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit