Table Of Contents

Creating a Stimulus Profile with Execution Behavior after Step Failure

Last Modified: November 16, 2020

Define the actions a stimulus profile performs to stop execution after a step fails.

Before you begin, create a real-time sequence that returns a pass/fail value.
  1. In the Stimulus Profile Editor, click the Start Page tab.
  2. Click New Stimulus Profile.
  3. Save the stimulus profile as Engine Demo Return Value tutorial in the <Common Data>\VeriStand Projects\Engine Demo\Stimulus Profiles\Engine Demo Return Value directory.
  4. Add a step to launch the VeriStand Editor.
    1. In the Steps palette, expand Other and drag Command Shell into Setup.
    2. In the Property Browser, specify the full path to VeriStand.exe as the Filename.

      You can add arguments in the Property Browser for this step to specify the VeriStand project, system definition file, and VeriStand gateway IP address to connect to.

    When the stimulus profile runs, this step opens the VeriStand Editor or Workspace so you can watch the stimulus profile execute.
  5. Create a step to call the sequence you created.
    1. In the Steps palette, expand Real-Time Sequences and drag Real-Time Sequence Call into Main.
    2. Select the Real-Time Sequence Call step in the stimulus profile code to specify the real-time sequence to call.
    3. In the Property Browser, browse the File Path to the real-time sequence you created.
    4. Click the Target Name pull-down and select Controller to execute the real-time sequence on the Controller target.
  6. Create pop-up dialog box.
    1. In the Steps palette, expand the Other and drag Message Box into Main.
    2. In the Property Browser, enter the following into Message:

      Because the Stop Execution on Fail checkbox is disabled, the Message Box step executes despite the failure of the previous step.

    3. Enter the following text into Dialog Title: Checked/Unchecked - Stop Execution on Fail
    4. In Default Text, enter OK.
    Because the Message Box step executes after the Real-Time Sequence Call step, you only see this message if the Real-Time Sequence Call step executes without failure, or if Stop Execution on Fail is disabled.
  7. Click Engine Demo Return Value tutorial.nivsstimprof and in the Property Browser disable Stop Execution on Fail.
  8. Save the stimulus profile.

The stimulus profile code will look like the following image.

After creating the stimulus profile, run it.

Recently Viewed Topics