Jump to content

RunVI: Difference between revisions

From LabVIEW Wiki
m Use shorter Template:Terminal template
Line 12: Line 12:
|-
|-
|11
|11
|{{TerminalAsDataType|type=control|string array}}
|{{Terminal|type=control|string array}}
|style="text-align: left;"|Command line arguments
|style="text-align: left;"|Command line arguments
|-
|-
|3
|3
|{{TerminalAsDataType|type=indicator|i32}}
|{{Terminal|type=indicator|i32}}
|style="text-align: left;"|Return code
|style="text-align: left;"|Return code
|-
|-
|2
|2
|{{TerminalAsDataType|type=indicator|string}}
|{{Terminal|type=indicator|string}}
|style="text-align: left;"|Output/Error message
|style="text-align: left;"|Output/Error message
|}
|}

Revision as of 19:28, 3 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:

Default 4x2x2x4

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