Application:Command Line Arguments Property

LabView Local Project Settings

Application:Command Line Arguments Property

Short Name: App.Args

Installed With: Base Package

Class: Application Properties

Returns an array of user-defined command-line arguments passed when LabVIEW launched.

User-defined arguments start after two hyphens (--) surrounded by spaces in the command line.

The first string in the array is the name of the executable launched. This property does not return the name of the VI launched or the LLB that contains the VI. If a user-defined command-line argument contains double quotation marks ("), this property returns the argument without the quotation marks.

If you use this property in a stand-alone application, you can pass all arguments as user-defined arguments so you do not need to enter the two hyphens before user-defined arguments in the command line.

This property is similar to the Pass all command line arguments to application option on the Advanced page of the Application Properties dialog box.

Example

Remarks

The following table lists the characteristics of this property.

Available in Run-Time Engine and Real-Time Operating SystemYes (Read Only)
PermissionsRead Only
Settable when the VI is runningNo
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access disallowedNo
Must wait until user interface is idleNo
Available with control VIsNo
Available with global VIsNo
Available with strict type definitionsNo
Available with polymorphic VIsNo

Example

Refer to the CommandLine VI in the labview\examples\viserver\cmdline.llb for an example of using the Application:Command Line Arguments property.

 Open example  Browse related examples