NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

UUT result in Post UUT Callback

Hi guys,

 

I have to read the UUT result  which is provioded by the below mentioned  expr.

 

RunState.Sequence.Main["MainSequence Callback"].Result.Status

 

The thing is I save the  result in Custom made TDM file and must close the file .

All this work I  do in Cleanup &  plan to do In  Post UUT   but  obviously  the

result is not available in  "  RunState.Sequence.Main["MainSequence Callback"].Result.Status"

 

as PostUUT callback is also part from Main Seq.

 

what is   the work around for this issue

 

0 Kudos
Message 1 of 5
(5,149 Views)

Hi,

 

well to settle for something less

 

how do I get the result status for

 

RunState.SequenceFile.Data.Seq["MainSequence"]

0 Kudos
Message 2 of 5
(5,144 Views)

First of all, the PostUUT sequence is not part of the MainSequence, unless you make a direct call (which is NOT recommended).

As the process model calls the MainSequence, the overall result is determined once that MainSequence finishes.

Some point late, the process model calls PostUUT and passes the result as parameter. This is what you are looking for.

 

Btw: Don't make "SequenceFile" and "Sequence" a synonym! Even if MainSequence and PostUUT are in the same "sequence file", they are called independantly by the process model!

 

Norbert

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

 

 

I think  its

 

RunState.Root.Locals.ResultList[0].Status

 

 

0 Kudos
Message 4 of 5
(5,138 Views)

 

Du hast rechts Norbert.

 

0 Kudos
Message 5 of 5
(5,137 Views)