NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

terminating proceses

I am running an executable file of a code that I wrote on CVI . During this running a certain process is  disturbing my program to be  executed.

 How can I add a line to my code that will end the process automaticlly each time the program is runninng. My program opens CMD and run PLINK from it with a shell script, and I want to terminate the PLINK process after I finish running the script. It can't be terminated from the script because the system I'm connect to by IP is plotting to the a window all kind of messages. Terminating Plink will solve my problem for sure how can I do it ?. 

0 Kudos
Message 1 of 3
(3,002 Views)

Hello Zofe,

 

I would recommend "LaunchExecutable", "LaunchExecutableEx", and "TerminateExecutable" for CVI functions or if you prefer "CreateProcess", "ExitProcess", or "TerminateProcess" using the Windows SDK.

With warm regards,

David D.
0 Kudos
Message 2 of 3
(2,965 Views)

Hello Zofe,

 

At first read I thought you were in the CVI environment, I did not realize you are working with TestStand.

 

Here is a discussion forum which describes what you would like to do if I am understanding you correctly.

Message Edited by Dr. Doiron on 12-02-2008 01:47 AM
With warm regards,

David D.
Message 3 of 3
(2,956 Views)