NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Checking the status of Main Sequence in PostUUT callback

Solved!
Go to solution

 

I am checking the status of the Main Sequence in the PostUUT callback, running TS 2014 SP1.
Say, the Main Sequence generates an error. In PostUUT I check the status and get the following

Parameters.Result.Status                 "Error"
Parameters.Result.Error.Code          <same error code as seen in Main>

Parameters.Result.Error.Msg            <same error message as seen in Main>

Parameters.Result.Error.Occurred    False

Shouldn't Parameters.Result.Error.Occurred be True? If not please explain why.

Thank you.

0 Kudos
Message 1 of 3
(3,831 Views)
Solution
Accepted by topic author sukaba

In the process model the step that is calling MainSequence Callback is set to ignore run-time errors.  This is so that the rest of your Main Step Group can execute.  This is why it sets that result to False but retains all of the error info.

 

I'd trigger on the Status string if it were me.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(3,815 Views)

Thank you for your time.

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