How Can I Access the UUT Result String from the UUT Report?

Updated Apr 20, 2018

Reported In

Software

  • TestStand

Issue Details

I am getting a run-time error, and would like to capture the error string and report the failure, like in the picture below. How can I do this?


Solution

TestStand has a callback called SequenceFilePostStepRuntimeError that will be called when there is a run-time error. In this callback you can access the error message and code. You will use Parameters.Step.Result.Error.Msg for the message, and Parameters.Step.Result.Error.Code for the error code.

This is shown in the Overriding SequenceFilePostStepRuntimeError Callback.seq file example. This example can be found at C:\Users\Public\Documents\National Instruments\TestStand 2016 (32-bit)\Examples\Fundamentals\Overriding Engine Callbacks. You can see if the popup that they are accessing the error message and code.

Additional Information

If you are wanting the explanation of an error code, like -17500 means Operation Failed, then you will need to use the Get Error String Method.

WAS THIS ARTICLE HELPFUL?

Not Helpful