Generate Error
- Updated2025-10-27
- 1 minute(s) read
Create and return a user-defined error code and message in the stimulus profile test results file.
You can also configure this primitive to stop the sequence and skip to the clean-up tasks or to immediately abort the sequence without performing clean-up tasks. Only the most recent error appears in the test results file because the most recent error overwrites any previous error that occurred.
| Property/Section | Description |
|---|---|
| Description | Specifies a description for the current item. This text appears when you hover over the item in the Stimulus Profile Editor. |
| Error Code | Specifies the numeric value to return. |
| Message | Specifies a string that you want to append to the Error Code in the test results file. |
| Action to Take |
Specifies how to proceed through the remainder of the real-time
sequence:
|
The test results file displays the error code and message in the section that
corresponds to the sequence that generated the error. The following example shows how an
error appears in the test results
file:
Outcome: Error: 55. Details: <append> ========================= NI VeriStand: Alert! The Engine Temperature is outside the critical range. Shutting down the engine.