LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute an exe while LV is running?

Hi

Currently I have an exe file (from VB) and wanted to execute it while my LV is running.. How can I do it? I've already searched around the net but couldn't find any way to execute it.... I understand that the System Exec.vi would help me on this but no example of how to run the exe... THANKS!!!
0 Kudos
Message 1 of 7
(3,956 Views)
0 Kudos
Message 2 of 7
(3,951 Views)
Is this the only way to run / call an exe file in LV? I don't wish to see the MS DOS prompt before executing. Any advise?
0 Kudos
Message 3 of 7
(3,931 Views)
You can run it minimized.
________________________________________________________


Try to make everything Automatic
0 Kudos
Message 4 of 7
(3,929 Views)

@222 wrote:
Is this the only way to run / call an exe file in LV? I don't wish to see the MS DOS prompt before executing. Any advise?


You can minimize the DOS box with the Run Minimized input. 

Also, there's another option:  use the ShellExecute Win32 API call.  See this thread for an example VI using this approach: 

http://forums.ni.com/ni/board/message?board.id=170&message.id=169615

-Khalid

Message Edited by Khalid on 03-19-2006 07:35 PM

0 Kudos
Message 5 of 7
(3,926 Views)
Run it minimize???? HOW??

Anyway, thanks Khalid for the reply
0 Kudos
Message 6 of 7
(3,909 Views)
Hello 222,

the "System Exec.vi" has a "run minimized?"-input! Just switch on the online help (Ctrl-H)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 7
(3,905 Views)