Table Of Contents

Generate Error

Last Modified: November 16, 2020

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:
  • ContinueSequenceExecution—Continues normal execution of the real-time sequence.
  • StopSequence—Halts execution and runs the tasks under the Clean Up node.
  • AbortSequence—Immediately halts execution without running tasks under the Clean Up node.
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.

Recently Viewed Topics