Table Of Contents

Creating a Stimulus Profile to Log Data

Last Modified: June 10, 2021

Create a stimulus profile that logs RPM and Temperature data as a TMDS file.

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 Logging tutorial.nivsstimprof in the <Common Data>\VeriStand Projects\Engine Demo\Stimulus Profiles\Engine Demo Logging 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.
      spd-note-note
      Note  

      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. In the Steps palette, expand Logging and drag Start Logging into Main. A Channel Group step automatically appears under Start Logging. This step logs execution data for the channels you specify in each Channel Group that appears under this step.
  6. From the Steps palette, drag another Channel Group into Start Logging so it contains two groups.
  7. Click the Start Logging step and, in the Property Browser, configure it.
    1. Enter the Configuration Name as Logging Configuration Demo.
    2. Browse the File Path to <Common Data>\VeriStand Projects\Engine Demo\Stimulus Profiles\Engine Demo Logging, enter the File name as Log File, and click Save.
    3. Enable Replace Existing File.
    4. Enter the Log Rate [Hz] as 100.
    5. Click the Trigger Condition pull-down and select none.
    6. Click the Segment Options pull-down and select DoNotSegment.
  8. Click the first Channel Group and, in the Property Browser, configure it.
    1. Enter the Channel Group Name as RPM.
    2. Browse the Channels, expand Aliases, and enable ActualRPM and DesiredRPM.
  9. Click the second Channel Group and, in the Property Browser, configure it.
    1. Enter the Channel Group Name as Temperature.
    2. Browse the Channels, expand Aliases, and enable EngineTemp.
    VeriStand logs data from the channels in the RPM and Temperature groups to Log File.tdms.
  10. In the Steps palette, expand Real-Time Sequences and drag Real-Time Sequence Call into Main.
  11. Configure the Real-Time Sequence Call.
    1. In the Property Browser, browse the File Path to <Common Data>\VeriStand Projects\Engine Demo\Stimulus Profiles\Engine Demo Logging\Engine Demo Logging.nivsseq.
    2. Click the Target Name pull-down and select Controller.
  12. In the Steps palette, drag Stop Logging into Clean Up.
  13. In the Property Browser of the step, enter the Configuration Name as Logging Configuration Demo.
  14. Save the stimulus profile.

The stimulus profile code will look like the following image.

After creating the stimulus profile, run it.

Recently Viewed Topics