LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling apps with .exe extentions

How do you call an .EXE from within your labview app.?
0 Kudos
Message 1 of 4
(4,440 Views)
Use "System Exec.VI". In LV 6.0, it is located in "Functions > Communication".
Good Luck
0 Kudos
Message 2 of 4
(4,440 Views)
Thanks for the info but I couldn't see how to make this work. Basically I have several large vi programs (converted into exe form)that I want to call from a main menu which will also be an exe.. If I embed the vi's into the main menu the resulting exe is 100meg in size. To big to run smoothly on the production computors so I need to find a way to call on the subprograms from the main menu. Any Ideas?
0 Kudos
Message 3 of 4
(4,440 Views)
If all you need to do is call the exe's then the system exec.vi will do the trick. When a user selects the option from your main menu, just pass the path to the exe to system exec and it will start and run just like any other exe. The problems with starting an exe is how to pass or return parameters or stopping the exe from the main program. If you want a small main program and the ability to pass and return parameters, I would suggest you look at calling your subVIs dynamically. You can make use of VI Server and either use the Call By Reference Node or Open VI Reference. There are several examples that ship with LabVIEW that address dynamically loading and calling VIs.
Message 4 of 4
(4,440 Views)