From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

batchmodel terminate execution over api

Hello,

 

i have a testplan in Teststand 2014 Sp1 with a batchmodel with 3 DUTs. With a C# program i start the Testplan. This is no problem. When i want to terminate the test execution i call the api function AxExecutionViewMgr.TerminateExectuion(). But this methode stops only the last DUT or sometimes the two last DUTs execution.

 

I found a other command "terminateall". But this method is not callable over the api.

 

So...how i can stop the testexecution of a batchmodel with the api?

 

regards,

 

René

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

Hi Rene,

 

the "TerminateAll" is not a method of the Execution View manager.

 

Instead:

 

Application manager --> get engine --> terminate all

 

I'm not sure about the syntax but the inheritance/containment hirarchy should help to get you going.

 

Best Regards

 

Mathis

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

Hi,

 

thanks 🙂

 

i found the terminateall and test it. Now all DUTs are stopped 🙂

 

regards,

 

René

0 Kudos
Message 3 of 3
(3,436 Views)