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

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

Command Line Executable

How would I create the following programs;
Operator input executable that allows the operator to input two numbers.
ADD executable that accepts two command line arguments and returns the results.
From the operator input executable the operator enters two numbers and presses the start button, the program then calls the Add program executable using the command line and passing the two numbers to the program and waits for a response from the Add program and displays the results.  
0 Kudos
Message 1 of 4

I'm not sure exactly what you are asking for. Do you really need to call external exe files that perform a certain function or will regular LabVIEW VIs be okay? Do you need the list of external files to be dynamic or is this a fixed set of functions you need to implement? For something dynamic, you can look at the shipping example called 'Plug In Example.VI'. If it's a fixed set of functions, you just need some sort of ring control on the front oanle wired to a case statement.

0 Kudos
Message 2 of 4
For the first part of my question; How would I write a Labview executable call it "ADD.exe" that I can pass at least two parameters from the command line. Example command line to execute the ADD program, the two parameters are 1 & 2; C:\ADD.EXE -- 1,2
0 Kudos
Message 3 of 4
Look at the shipping example called ''. Returning values from an exe can be a real pain. It's much simpler to use the app builder to create a dll and it's even simpler to just use a regular VI. You still haven't answered my question as to why you want to use an external exe.
0 Kudos
Message 4 of 4