LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

call exe from an exe

Solved!
Go to solution

hello

 

How we can call an exe from an another exe.

 

If the exe installed in a PC, it had not LabView and whatever files or drivers needed.

 

I create a dll file. call functions node used to call the dll. But it is not calling the dll

 

please give a solution for this 

 

Thank you 

 

 

"Thanks with regards "
by
..........Gireesh..........
0 Kudos
Message 1 of 11
(3,740 Views)

Use the Shared variable concept to achieve this, Have attached a small sample, Open the My application 2 folder and run the Application.exe, Press Hitme button, This program calls the another exe when you  press that button.

 

Is this kind of application what you are lookinf for? Let me know if this works in your system.

0 Kudos
Message 2 of 11
(3,717 Views)

Hello

 

May be it will work. It is not working in my PC due to higher version of LV. I am using LV7.1 

"Thanks with regards "
by
..........Gireesh..........
0 Kudos
Message 3 of 11
(3,704 Views)

cancancanopen, if you're going to upload examples, please upload source code. How do we know that you haven't written an application that installs a virus? Smiley Wink

 

gireesh: your question is not clear. What do you mean by calling an exe from another exe? What is the "another exe"? Is either of these LabVIEW? If you're trying to launch an exe from LabVIEW you can use System Exec to do this.

 

What does the DLL have to do with this? 

Message 4 of 11
(3,703 Views)
Solution
Accepted by topic author gireesh

, Attaching the ver 8.0 files.

 

Gireesh, If you want that to run then you must have 8.2 runtime engine.

 

As said we use System Exec VI to run exe or any other kind of programs & we don't need any DLL. Shared variable is the person who can communicate between two different exe.

 

You can have look at the sample code if you have LV 8.0.

0 Kudos
Message 5 of 11
(3,695 Views)

 

I had 2 vi's.i made exe of both. In the first one, there is a switch.when this is active or true the second one should open and run. 

 

and i am not familiar with DLL call library node etc. 

"Thanks with regards "
by
..........Gireesh..........
0 Kudos
Message 6 of 11
(3,679 Views)

Gireesh,

 

Pls have a look at these images the same code is present in the zip file attached.

 

First VI waits for the Input from second VI.

 

Build exe using first VI, build exe using second VI and Run exe built using second VI.

Download All
0 Kudos
Message 7 of 11
(3,677 Views)

hello cancancanopen and smercurio_fc

 

Thank you for the solution. I will try with LV7.1 if it is OK i can report you

 

Thank you once again 

"Thanks with regards "
by
..........Gireesh..........
0 Kudos
Message 8 of 11
(3,672 Views)

Hello Gireesh,

 

I doubt we do not have any Shared variable concepts in LV 7.1, I am sorry for that man.

0 Kudos
Message 9 of 11
(3,670 Views)

gireesh wrote:

 

I had 2 vi's.i made exe of both. In the first one, there is a switch.when this is active or true the second one should open and run. 

 

and i am not familiar with DLL call library node etc. 


Then all you need to do is to use the System Exec function to launch the second one when you press the switch on the first one.

0 Kudos
Message 10 of 11
(3,663 Views)