LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

running an executable (.exe)

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???????????

 

 

Somil Gautam
Think Weird
0 Kudos
Message 1 of 7
(3,564 Views)

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

Message Edited by Madboy(Mathan) on 10-01-2009 04:40 AM
0 Kudos
Message 2 of 7
(3,563 Views)

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?

Somil Gautam
Think Weird
0 Kudos
Message 3 of 7
(3,552 Views)

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 

Message 4 of 7
(3,531 Views)

Thanks for the reply.

 

But i do not know much about the dll calling.Smiley Sad

Some other method you can think of?????? Smiley Happy

Somil Gautam
Think Weird
0 Kudos
Message 5 of 7
(3,528 Views)

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.

Message 6 of 7
(3,518 Views)

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!

_________________________________________________________________________________________________

That glass?

Thats glass is neither half full or half empty....
Its twice the size it needs to be
0 Kudos
Message 7 of 7
(3,367 Views)