Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop VI when CMD.exe exits?

I am using shell block (System Exec) in my VI where I specify Directory and a script name.

Script name is cmd /c adb-toolkit.exe shell < testScript.txt, with testScript.txt containing following content:

 

ubuntu_chroot shell
su phablet
cd /home/phablet/test
nohup ./test.sh
exit
exit
exit

When script is executed, cmd.exe opens and stays open until testScript.txt calls an exit command, after which cmd.exe gets closed.

I am would like to stop execution of my VI at the same moment when cmd.exe gets closed. How can this be done?

 

0 Kudos
Message 1 of 2
(3,345 Views)

Hi armendzh,

 

You can wire a True constant to the "wait until completion?" input.

 

Capture.PNG

 

Best,

 

Carmen C

0 Kudos
Message 2 of 2
(3,316 Views)