NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop the current UUTs on an event and go to PreUUT in Parallel Model

Hi all,

 

I am running a Sequence file in Parallel Model. Incase of specific events, I have to stop the currently running UUTs and wait for the next UUTs (basically cleanup the current UUTs and go to PreUUT). How should I do this? A LabVIEW VI runs in the background, checks for the events and currently calls the "SequenceContext -> GotoCleanup" for all sockets. But this does not address our purpose. This goes to the cleanup sequence of the currently running Sequences only and then continues looping on the MainSequence of the test Sequencefile and does not go to the PreUUT. Also the thread ID of the socket goes invalid after executing this GotoCleanup method. What am I missing? I checked this post and looks like we have to use TerminateAll with some precondition for our usecase. Is there any other direct method? Thanks.

0 Kudos
Message 1 of 3
(258 Views)

From SequenceContext, you should also be able to access RunState.Execution.

Use the Terminate() Method.

 

In the Parallel Model, each Socket has its' own Execution plus there is an extra Controller Execution (which must not be stopped in your case).

 

 

0 Kudos
Message 2 of 3
(228 Views)

@Priyadarsini wrote:

A LabVIEW VI runs in the background...


Each socket execution should pass a SequenceContext to your backgroud VI, then when the event happens the VI can signal each execution to GoToCleanup

0 Kudos
Message 3 of 3
(173 Views)