View Signal Waveforms with Signal Triggered Scope Instrument

The default trigger mode of the Scope instrument is SINGLESHOT, which displays one sample sweep. To trace a waveform in a continuously updated moving display, you can change the trigger mode to REPEATED. However, a moving display is often difficult to evaluate.

In this example, to produce a continuously updated static display, we configure the scope instrument to trigger mode REPEATED with trigger source Signal.

Preconditions

You must have previously built and downloaded the xpcosc model and configured the xpcosc_scope_instr_freerun.slrtip instrument panel. See View Signal Waveforms with Scope Instrument.

Configure Scope Instrument

  1. Load the instrument panel.

    In the Panels pane, right-click the Instrument Panels node and select Existing. From the list, select xpcosc_scope_instr_freerun.slrtip.

  2. Select the Scope instrument.

  3. Open the Instrument properties list.

  4. Set TriggerMode to REPEATED.

  5. Set TriggerSource to Signal.

  6. Set TriggerSignal to Signal Generator.

  7. Set TriggerSlope to Rising.

  8. Set TriggerLevel to 4.

  9. Save the instrument panel under another name, such as xpcosc_scope_instr_signal.slrtip.

Run Instrumented Model

Run the instrumented xpcosc model, tune the parameters, and view the output waveform with signal triggering and forced triggering. You must have previously built and downloaded the xpcosc model and configured the xpcosc_scope_instr_signal.slrtip instrument panel.

  1. Load the instrument panel.

    In the Panels pane, right-click the Instrument Panels node and select Existing. From the list, select xpcosc_scope_instr_signal.slrtip.

  2. Set property Stop time to inf in the Applications pane ( on the toolbar).

  3. To start the instruments, in the xpcosc_scope_instr_signal.slrtip instrument panel, click the Run Instrument button .

  4. To start execution, in the Applications pane, click the real-time application, and then click the Start button  on the toolbar.

    The Scope instrument displays a continuous series of captured waveforms.

  5. To change the amplitude and damping value, use the Amplitude and Gain1 instruments.

    For example, to increase the amplitude and reduce the oscillator damping, set Amplitude to 6 and Gain1 to 200.

    The Scope instrument displays the changes in waveforms immediately.

  6. Reduce the amplitude below the TriggerLevel (4).

    The Scope instrument stops displaying the changes in waveforms because the signal does not have a high enough amplitude to reach the trigger level.

  7. To display waveforms with an amplitude below the trigger level, click the Force Trigger button  on the toolbar.

  8. To stop execution, in the Applications pane, click the real-time application, and then click the Stop button  on the toolbar.

  9. To stop the instruments, in the xpcosc_scope_instr_signal.slrtip instrument panel, click the Stop Instrument button .

See Also

|

Related Topics