Table Of Contents

Creating a Real-Time Sequence to Return a Pass/Fail Value

Last Modified: August 31, 2020

Update an existing sequence to pass a Boolean return value.

Before you begin, deploy the engine demo's system definition.
  1. In the VeriStand Editor, click Tool Launcher »Stimulus Profile Editor.
  2. Click File»Open, navigate to <Common Data>\VeriStand Projects\Engine Demo\Stimulus Profiles\Engine Demo Advanced, and double-click the Engine Demo Advanced sequence.
  3. Save the sequence as Engine Demo Return Value tutorial in the <Common Data>\VeriStand Projects\Engine Demo\Stimulus Profiles\Engine Demo Return Value directory.
  4. In the Primitives palette, expand Variables and drag Boolean to the Variables pane under Return Value to change the value from a Void Return Value.
  5. In the Property Browser, change the Identifier to WarmUpSucceeded.
  6. From the Variables pane, drag WarmUpSucceeded into the sequence code under MonitorEngineTemperature, inside Then. If the Then section of the code executes, the return value will be false. This indicates that the warm-up task failed because the engine temperature exceeded 110 degrees.
  7. Drag another WarmUpSucceeded into the sequence code under MonitorEngineTemperature, inside Else, and modify it in the Property Browser to be true. If the Else section of the code executes, the return value will be true. This indicates that the warm-up task succeeded because the engine temperature remained below 110 degrees.
  8. Save the real-time sequence.
The altered real-time sequence code will look like the following image.
After creating this real-time sequence, add it to a stimulus profile.

Recently Viewed Topics