NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the termination state of sequence in a new execution?

Hi,

I found a way how to get the termination state during an execution (RunState.Execution.GetStates()).

Nice to know. But it is per execution, so if a wrapper calls another Sequence "as a new execution", the termination state inside

the new sequence is different than outside (in the wrapper).

 

I know that there is the run state which is available also for a previous step (and from inside of a new execution):

RunState.PreviousStep.Result.Status

But is there something similar also for the termination state (I could not find it)?

 

Thanks a lot.

 

Best Regards

Matthias

 

 

0 Kudos
Message 1 of 2
(1,740 Views)

Hi,

I found a kind of workaround for that problem:

Inside of the cleanup phase of the inner sequence write a stationGlobal variable with the result of the RunState.Execution.GetStatus() call.

This variable is accessible also in the wrapper (calling execution).

 

Caution: the variable is not resettet between runs, so cleanup is needed....

 

I do not like those workarounds, but passing parameters out of new executions with the use of Process Modells does not work (at least in TS2016).

 

Best regards

Matthias

0 Kudos
Message 2 of 2
(1,736 Views)