Generating Errors in a Real-Time Sequence
- Updated2025-10-27
- 1 minute(s) read
Generating Errors in a Real-Time Sequence
Configure a real-time sequence to return user-defined error codes and messages in the stimulus profile test results file.
- Create a real-time sequence.
-
Add a Generate Errors primitive to the sequence code.
Note This primitive also allows you to stop the sequence and skip to the clean-up tasks or to immediately abort the sequence without performing clean-up tasks.
-
If you need to clear or access an error later in the sequence, create an
expression in the Property Browser that
implements a function.
Goal Function Clear the last error so it does not appear in the test results file. clearlasterror Return the numeric error code of the last error. getlasterror
Outcome: Error: 55. Details: <append>========================= VeriStand: Alert! The Engine Temperature is outside the critical range. Shutting down the engine.
Related Information
- Creating Real-Time Sequences
Use real-time sequences to define specific tasks for a unit under test (UUT).
- Generate Error
Create and return a user-defined error code and message in the stimulus profile test results file.
- Adding and Editing Expressions in a Real-Time Sequence
Use expressions to access and act on the variables you define for a real-time sequence.
- Viewing Stimulus Profile Test Results
Enable the Stimulus Profile Editor to automatically open stimulus profile test results.