Solution
Test steps in TestStand (such as Numeric Limit Test steps, for example) cannot be configured to return an Error status, because their Status Expression is defined by the step type and is not editable.
To achieve the desired behavior, you can replace the Numeric Limit Test with an Action step that calls a code module and performs the comparison within that module. This approach allows you to control how the result is interpreted and reported:
- Implement the comparison logic inside a code module such as LabVIEW, C#, or Python.
- Add an Action step to your sequence and configure it to call the code module. In the Module tab, map the inputs and outputs used for the comparison.
- Define an output parameter in the code module (for example, a Boolean such as WithinLimits) that indicates whether the comparison meets the expected limits and map it to a TestStand variable.
- In the Properties tab for the Action step, configure the Status Expression to evaluate the output parameter and return the desired result. You can set the expression to return:
- Passed, when the comparison meets the expected limits
- Error, when the comparison indicates a station or system issue
