NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Closing and openig new executables

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

0 Kudos
Message 1 of 5
(3,838 Views)

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.

0 Kudos
Message 2 of 5
(3,820 Views)

Hi,

 

    The problem is not with opening the multiple executables. Problem lies with close the background running executable, which is already open.

 

Haneef

0 Kudos
Message 3 of 5
(3,812 Views)

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. 

0 Kudos
Message 4 of 5
(3,799 Views)

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

0 Kudos
Message 5 of 5
(3,746 Views)