10-01-2009 04:35 AM
Hi
How can i run different executables (.exe) from labVIEW?
One method is through the "system exec" vi. Other can be through the ActiveX (if the software is activex enabled)
Any other method???????????
10-01-2009 04:39 AM - edited 10-01-2009 04:40 AM
Somil wrote:How can i run different executables (.exe) from labVIEW? One method is through the "system exec" vi. Other can be through the ActiveX (if the software is activex enabled)
Any other method???????????
Why you are looking for some other methods while the available methods work like a charm? Any issues? Give some particular details why you required that.
Mathan
10-01-2009 04:46 AM
Firstly, what if the software i have to run is not activex enabled????
Secondly, the "system exec" vi, everytime the code runs, it pops out. Though, connecting the run minimized option to true keeps it minimized but still, that is annoying.
These methods do work like a charm but exceptions are always there!!! so what can be the alternative here?
10-01-2009 05:43 AM
On windows, there is a dll called Shell32.dll, that has a function called ShellExecuteA. There might be other functions as well in that dll, that do the job.
Felix
10-01-2009 05:51 AM
Thanks for the reply.
But i do not know much about the dll calling.
Some other method you can think of??????
10-01-2009 06:50 AM
I usually use this vi that calls the shell32.dll. LV 8.6.1
Just input the path to the program or file you want to open.
06-04-2010 01:49 AM
Wow, just what I was trying to do. Legend!
The cmd method does have atleast one problem I have found FYI. I found that with one particular program I couldn't get it to open a file with a particular program it would just open the program.
Fingers X'd this method works!
Thanks for the code
Kudos!