From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i pass a parameter into a labview executable?

Hi,
 
I'm using LV 8.2. I compiled my Labview program into an executable. I want to pass in a string parameter when I spawn my executable.
 
lv_code.exe /name="Test case 1"
 
How can I make this work? At the very least is there a way I can get my executable to ignore /name?

Thanks,
 
Shok
0 Kudos
Message 1 of 2
(2,157 Views)
This is documented in the LabVIEW Help.

To pass user-defined arguments enter two hypens (--) surrounded by spaces before the set of user-defined arguments. Use the  Application:Command Line Arguments property to get the arguments from within the application.
0 Kudos
Message 2 of 2
(2,147 Views)