04-21-2021 01:13 AM
Hi,
I got a requirement to run two independent application installers in a separate labview project when user calls that particular installer name in my vi.
I wouId like to explain it with a simple example for better understanding:
1. I have two application installers created for doing addition and multiplication
2. I have saved these builds with the name Addition.Exe and Multiplication.Exe
3.so now i need to create one more lLABVIEW project which runs either of the installers when user selects any one of the Exe from the front panel of the vi
So do anyone have any knowledge on how to implement above requirement for running one installer at a time from the enum control input?
Attached file has front panel of the vi which provides options for the user to select particular installer name. Depending on the installer selected by the user i need to run that exe
04-21-2021 02:31 AM
Hi Sahan,
so you want to decide which EXE to run, based on that enum input?
What have you learned in the LabVIEW basics training on "how to create decisions" in your VIs? (Ever heard of a case structure?)
To run an EXE you could use the SysExec function…
04-21-2021 02:44 AM
Hi GredW,
Thanks for the information
I have used case structures but never used sysExec function till now. I there any example code on how to run/launch a different exe for example in my case addition exe in a vi using this sysexe function?
04-21-2021 02:49 AM
Hi Sahan,
SysExec expects a path for the EXE you want to run.
What is your problem to provide the path to those two executable you want to run?
Did you do any of those "Training resources" offered in the header of the LabVIEW board?
04-21-2021 03:00 AM
Hi GredW,
I have tried using the same function and provided the path but i am getting some error.
so does this function requires any input other than path of the exe?
Thanks,
Sahana
04-21-2021 03:18 AM
04-21-2021 03:48 AM
Thank you Gred,
Now i am able to run both exe as per the user selection.