LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to launch an exe from LabVIEW VI

Hi,
 
I have made a few programs using LabVIEW and generated executables for each of these programs. I wish to generated a single launch program for these executables -- launch this wrapper program, select the (program) executable which you want to run and then finally run the executable.
 
If this possible to do that using LabVIEW? How should this be done?
 
Best Regards,
Harpreet
0 Kudos
Message 1 of 3
(2,745 Views)
If they're already built into .exe's, you can use the System Exec.vi in Communications.  It works the same as the Windows cmd ("DOS").  I'm not sure about this, but you might be better off calling the VIs (before being built into an exe) in an event structure or something of the like...  I'm sure one of the heavyweights will weight in on this though...
0 Kudos
Message 2 of 3
(2,744 Views)
I would much rather call a subvi than call an exe.  But there might be a reason for using exe's instead of subvi's.  Anyway, create a loop with an event structure with an event case for each button.  In each event case, run the proper exe with SystemExec.
- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 3
(2,735 Views)