12-27-2010 08:09 AM
Hi,
I have to inoke more than one executables in same sequense. The issue is once the executable 'ex_1.exe' is called it will run in the background as sequence runs through, I want to close 'ex_1.exe' and open new executable 'ex_2.exe' some where down the steps.
Please provide me the information how I can achieve this.
Many Thanks
Haneef
12-27-2010 10:25 PM
Have you seen the example Calling System Exec.vi in NI Example Finder? You might want to modify the code to add multiple frames in a sequence and call multiple exes.
12-28-2010 01:24 AM
Hi,
The problem is not with opening the multiple executables. Problem lies with close the background running executable, which is already open.
Haneef
12-28-2010 03:46 AM
For closing exe you can use a batch file that contains the command TaskKill. In this way you can kill all the exe when want.
01-04-2011 09:36 AM
The best way is to have some sort of interprocess communication with your exe's so that, rather than killing ex_1.exe at some unknown point in its execution, you instead tell it to exit and then wait for it to do so. There are many ways to do this, it really depends on what ex_1.exe is doing and whether or not you can modify it.
Hope this helps,
-Doug