Get Command Line Arguments VI

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.


icon

Inputs/Outputs

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • istr.png application name

    application name returns the name of the application that launched this VI. The application can be LabVIEW or a LabVIEW-built application.

  • i1dstr.png arguments

    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.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • 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".