Table Of Contents

Creating a Stimulus Profile to call CSV Files

Last Modified: March 27, 2020

Create a stimulus profile that calls two Comma Separated Values (.csv) files like a real-time sequence.

Before you begin, deploy the engine demo's system definition.
  1. In the VeriStand Editor, click Tool Launcher »Stimulus Profile Editor.
  2. In the Stimulus Profile Editor, click New Stimulus Profile.
  3. Save the stimulus profile as Engine Demo CSV File Replay tutorial.nivsstimprof in the <Common Data>\VeriStand Projects\Engine Demo\Stimulus Profiles\Engine Demo CSV File Replay 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. Expand Real-Time Sequences and drag Real-Time Sequence Call step into Main.
  6. In the Property Browser, next to File Path, click Browse and select <Common Data>\Examples\Stimulus Profile\Engine Demo\Stimulus Profiles\Engine Demo CSV File Replay\WarmUp Phase 1.csv.
  7. Click the Target Name pull-down and select Controller to execute the CSV file on the Controller target.
  8. In the Sequences palette, expand Real-Time Sequence Library»Standard»Timing and drag WaitUntilSettled into Main.
  9. In the Property Browser, configure the WaitUntilSettled sequence.
    1. Click the Target Name pull-down and select Controller.
    2. Click the Type pull-down and select AlwaysPass
    3. Next to Signal, select Channel and click Browse to display the system definition channel tree.
    4. Click View aliases to display the aliases defined in the system definition.
    5. Double-click ActualRPM to assign this alias to the parameter.
    6. Next to UpperLimit, select Constant and enter 500000.
    7. Next to LowerLimit, select Constant and enter 2400.
    8. Next to Timeout, select Constant and enter 120.
  10. Drag another Real-Time Sequence Call step into Main.
  11. In the Property Browser, configure the step to call WarmUp Phase 2.csv, located in the same directory as WarmUp Phase 1.csv, and set the Target Name to Controller.
  12. Save the stimulus profile.

The stimulus profile code will look like the following image.

After creating the stimulus profile, run it.

Recently Viewed Topics