NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to terminate a sequence by the process Model?

Hi,

 

Could some one tell me how to terminate a test sequence by the process Model?

  

Basically, I am using a process model to run a new thread monitor sequence which is be monitoring a safety shared variable. Once the monitor sequence detects an error, it will raise an runtime error and the process model will catch the error and then terminate the main test sequence. (Runstate.Execution.Terminate does not work.)

 

Many thanks,

Wei

0 Kudos
Message 1 of 4
(3,698 Views)

Hi,

 

You have to use the Engine.TerminateAll

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,694 Views)

H Ray,

 

I understand that the “Engine Terminate All” will terminate all the sequences. But I will have two process models that are running in parallel and each process model needs to handle their own sequences, i.e., test sequences and monitor sequence. I would like each process model, independently, to stop only their own test sequence handled by this process model.

 

 

Many thanks,

 

Wei

0 Kudos
Message 3 of 4
(3,670 Views)

Ok,

 

Then you need to return the handle to that thread or execution so that you can use it Kill that thread or execution later.

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,660 Views)