11-29-2010 10:31 PM
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
11-30-2010 01:15 AM
Hi,
You have to use the Engine.TerminateAll
11-30-2010 02:29 PM
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
12-01-2010 01:18 AM
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.