Get Command Line Arguments VI

Owning Palette: Application Control VIs and Functions

Requires: Base Development System

Returns the arguments passed from the command line when LabVIEW or a LabVIEW-built application launched. User-defined arguments start after two hyphens (--) surrounded by spaces in the command line.

If an argument contains double quotation marks ("), this VI returns the argument without the quotation marks.

Details  

 Add to the block diagram  Find on the palette
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
application name returns the name of the application that launched this VI. The application can be LabVIEW or a LabVIEW-built application.
arguments returns the user-defined arguments passed from the command line. User-defined arguments start after two hyphens (--) surrounded by spaces in the command line.
error out contains error information. This output provides standard error out functionality.

Get Command Line Arguments Details

For example, if you enter C:\temp\MyLabVIEWApp.exe -- abc 123 TRUE in the command line when launching a LabVIEW-built application, application name returns MyLabVIEWApp.exe and arguments returns an array of the following strings: "abc", "123", "TRUE".