NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

get reference of all executions

From my main sequence I start other sequences in new executions. How to stop them all programmatically?

 

If I would get all the references to all the executions, it would be easy. How to do it?

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

First of all: Abort is a very, very dangerous thing. It can create significant issues up to hardware damage.

 

That being said, if you want to abort ALL executions, you can get the Engine from the SequenceContext and invoke the "AbortAll" method.

I suggest you to switch to "TerminateAll" instead.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 3
(3,142 Views)

@mitulatbati wrote:

From my main sequence I start other sequences in new executions. How to stop them all programmatically?

 

If I would get all the references to all the executions, it would be easy. How to do it?


I think you should describe at a higher level what you are trying to accomplish. There is likely a better way to do it.

 

-Doug

 

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