Application class/Application.Command Line Arguments property

From LabVIEW Wiki
Jump to: navigation, search
VI Server Property Information
Property ID 4F
Scope Basic Development Environment
Data Name App.Args
Short Name* App.Args
Long Name* Application:Command Line Arguments
* Displayed here in English. Short and Long names appear in the language of the LabVIEW IDE.
Owning Class ID 1
Owning Class Name Application Class
Data Type String Array data type

String Array

Property Node Application:Command Line Arguments
Available in Real-Time Operating SystemYes
Available in Run-Time EngineYes (Read Only)
PermissionsRead Only
Remote access allowedYes

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 avoid the need to enter two hyphens before user-defined arguments by placing a checkmark in the Pass all command line arguments to application checkbox on the Advanced page of the Application Properties dialog box.



Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links