LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open a *.exe application in LABVIEW with system exec function.

Greetings,

I would like to be able to lauch a *.exe application and open a specific file within my labview vi. The trick is to avoid using active X control at all cost. I would like to use the system exec function but I couldn't quite get it to work.

Let's assume that I would like to lauch wordpad.exe from my local drive. What are the params I need to pass? Thanks.
0 Kudos
Message 1 of 3
(2,782 Views)
You have to type in the command line of the System exec vi the name of the executable and eventually its path.
Look at the attached vi that launches Wordpad as you asked.
0 Kudos
Message 2 of 3
(2,782 Views)
Alberto,
Thanks for replying. I still have the same problem. The error message I got was error 2:System Exec.vi. Command was "wordpad.exe". I specified the correct path to the program on my hard drive.

Any idea what was wrong?
0 Kudos
Message 3 of 3
(2,782 Views)