Step 3: How to Measure with an Enabled Start Trigger and an Enabled Stop Trigger

Objective

Enabling a start trigger in combination with a stop trigger allows you to define a specific part of a signal to be uploaded from the dSPACE platform to the host PC.

If the triggers are enabled for a measurement raster, the trigger conditions are evaluated on the real‑time hardware when measurement is started. Data is transferred to the host PC only if the trigger conditions are met.


Video

Watch the video or follow the written instructions below.


Method: To measure with an enabled start trigger and an enabled stop trigger

  1. In the group view of the Variables pane, select the Model Root – Signal Generator – Signal Generator node.

  2. In the variable list, select the SignalGenerator/SignalGenerator/SignalGenOutput variable and drag it onto the legend of the Time Plotter.

  3. Right-click the y-axis area and select Y-Axes View – Horizontal Stacked.

  4. Press F5 to start measurement.

    When a measurement is running, the Time Plotter can automatically add a start trigger to a measurement raster and calculate optimum start and stop trigger settings.

  5. Select the Control_out signal in the legend and click in the toolbar.

    ControlDesk calculates optimum values for the start and the stop trigger.

    You can see the changed values in the Measurement Configuration and their results in the Time Plotter:

    • The start trigger Platform Trigger 1 is enabled for the 1 ms raster.

    • The trigger conditions for the platform trigger are specified.

    • The duration trigger is specified. The length of the duration trigger depends on the number of displayed periods. You can decrease and increase the number of periods via the toolbar: .

  6. Click the period symbols in the toolbar until one period is displayed.

    The Time Plotter now shows one period of the automatically calculated trigger settings.

    Taking this result as starting point, you can change the trigger settings interactively.

  7. Click to activate the interactive trigger setting.

    Three sliders are displayed on the Time Plotter axes.

    • On the y-axis, you can drag one slider to change the trigger value.

    • On the x-axis, you can drag two sliders to change the trigger delay and the samples or duration settings.

    Tip

    You can change all the trigger settings manually. Even the trigger signal can be dragged manually to the Measurement Configuration pane. However, it is easier to place a signal in the Time Plotter and start with an automatic trigger setting.

  8. Click to reactivate the automatic trigger settings.

  9. Clear the Auto Repeat checkbox and click the Start button several times.

    • Each click starts a new capture.

    • If the Time Plotter display is triggered, the time axis does not show the original time stamps of the running measurement. It starts at 0 when the condition of the start trigger is met. You can see the original time stamp (the time that passed between the start of the measurement and the triggering of the current capture) in the DAQ info area.

  10. Select Auto Repeat and click Start.


Result

You have configured a start trigger and performed a measurement with enabled start and stop triggers.


What’s next

In the next step, you will learn how to trigger the Time Plotter display to focus on the uploaded part of the signal and then untrigger it again.


Redaction