NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Main Sequence Result

I need know the main sequence result (pass, fail, error) in the postuut sequence to control my test handler. How can I determine the main sequence result in the postuut sequence? 
0 Kudos
Message 1 of 3
(4,454 Views)
Hey Jimbo50,

I assume when you are talking about the MainSequence result, you are referring to whether the MainSequence passed, failed, terminated, etc.  The PostUUT callback in the default NI Sequential Process Model already tests for these different results.  They can be accessed from RunState.Sequence.Main["MainSequence Callback"].Result.Status.

Again I would highly recommend looking at the default PostUUT callback because I believe it is testing exactly what you are looking for.  Hope this helps!

Message Edited by Patrick P. on 04-05-2007 10:14 AM

Pat P.
Software Engineer
National Instruments
0 Kudos
Message 2 of 3
(4,442 Views)

FYI, just an update (since I got a call on this). If you are already in the PostUUT Callback sequence, you can simply use:

Parameters.Result.Status

Also,RunState.Sequence.Main["MainSequence Callback"] will not work since PostUUT does not contain "MainSequence Callback". "MainSequence Callback" is a step in your Process Model's Execution Entry Point, so you would use:

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

Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 3 of 3
(3,984 Views)