05-05-2010 11:40 AM
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
Solved! Go to Solution.
05-05-2010 01:53 PM
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.
05-05-2010 02:20 PM
Hello
May be it will work. It is not working in my PC due to higher version of LV. I am using LV7.1
05-05-2010 02:21 PM
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?
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?
05-05-2010 02:35 PM
smercurio_fc , Attaching the ver 8.0 files.
Gireesh, If you want that to run then you must have 8.2 runtime engine.
As smercurio_fc 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.
05-05-2010 03:14 PM
Hello smercurio_fc
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.
05-05-2010 03:20 PM
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.
05-05-2010 03:36 PM
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
05-05-2010 03:40 PM
Hello Gireesh,
I doubt we do not have any Shared variable concepts in LV 7.1, I am sorry for that man.
05-05-2010 03:53 PM - last edited on 11-06-2024 05:52 PM by Content Cleaner
gireesh wrote:
Hello smercurio_fc
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.