"Passing Command Line Parameters.vi" LabVIEW Shipping Example Does Not Pass Arguments

Updated Aug 19, 2021

Reported In

Software

  • LabVIEW

Issue Details

I am running the Passing Command Line Parameters.vi shipping example in LabVIEW. I create the Command Line String using the VI and paste the generated string containing my desired parameters into a Windows Command Prompt. I then execute the command in the string to run LabVIEW and launch the Command Line Target.vi with my specified arguments. However, when the command is executed and LabVIEW opens I do not see the arguments listed and no control on the front panel is filled.

Solution

To properly pass arguments when a new LabVIEW VI is launched, no instance of LabVIEW should be running on the computer. This means that after you generate the command string you should close LabVIEW completely. After LabVIEW is closed you can run the command and LabVIEW will be able to correctly pass all of the command line arguments to the opening VI.