From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,562 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,546 Views)

Thank you for your time.

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