Jump to content

RunVI: Difference between revisions

From LabVIEW Wiki
Created page with "'''RunVI''' is a built-in operation installed by the NI LabVIEW Command Line Interface add-on. It runs a VI with a specific connector pane interface and returns the output or error information. ==Connector pane== VIs called by this operation must have a specific connector pane interface, using the 4x2x2x4 pattern with one input terminal and two output terminals: Default 4x2x2x4 {| class="wikitable" style="text-align: center;" !..."
 
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
VIs called by this operation must have a specific connector pane interface, using the 4x2x2x4 pattern with one input terminal and two output terminals:
VIs called by this operation must have a specific connector pane interface, using the 4x2x2x4 pattern with one input terminal and two output terminals:


[[File:4x2x2x4-Default.png|Default 4x2x2x4]]
{{ConnectorPane|pattern=4x2x2x4}}


{| class="wikitable" style="text-align: center;"
{| class="wikitable" style="text-align: center;"
Line 12: Line 12:
|-
|-
|11
|11
|[[File:String Array.png|1D array of string|link=1D array of string]]
|{{Terminal|type=control|string array}}
|style="text-align: left;"|Command line arguments
|style="text-align: left;"|Command line arguments
|-
|-
|3
|3
|[[File:I32 Indicator.png|32-bit integer|link=32-bit integer]]
|{{Terminal|type=indicator|i32}}
|style="text-align: left;"|Return code
|style="text-align: left;"|Return code
|-
|-
|2
|2
|[[File:String Indicator.png|string|link=string]]
|{{Terminal|type=indicator|string}}
|style="text-align: left;"|Output/Error message
|style="text-align: left;"|Output/Error message
|}
|}

Latest revision as of 12:03, 4 January 2025

RunVI is a built-in operation installed by the NI LabVIEW Command Line Interface add-on. It runs a VI with a specific connector pane interface and returns the output or error information.

Connector pane

VIs called by this operation must have a specific connector pane interface, using the 4x2x2x4 pattern with one input terminal and two output terminals:

Connector pane

Terminal Data Type Description
11 Command line arguments
3 Return code
2 Output/Error message

Synopsis

 LabVIEWCLI -OperationName RunVI
            -VIPath <path> [<arg>...]

Options

-VIPath <path> [<arg>...]
Path to a VI with a compatible connector pane interface. Additional arguments can be specified (separated with spaces) that are passed to the VI.

External links