Plots Not Visible in Simulink Scope Block

Prior to an external mode run, you must specify the following for data to plot in a Simulink® Scope block:

  1. Select Simulation > Mode > External.

  2. Select one or more signals for capture (designated with X) in the External Signal & Triggering dialog box from the External Mode Control Panel.

  3. Set Duration * Fixed Step Size close to or less than the X range in the Scope block

  4. Select required mode (one-shot or normal)

  5. Configure signal levels to allow triggering

  6. Set Y range on Simulink Scope block axes to large enough to span the signal amplitude

  7. Set X range to large enough to provide required time resolution

  8. Set Arm when connect to target in the External Signal & Triggering dialog box or Arm Trigger in the External Mode Control Panel.

  9. Click the Run button   on the toolbar.

If you cannot see signals plotted in your Simulink Scope blocks after carrying out these steps, your system might have too little CPU time available between sample intervals to transfer data back to MATLAB®, where the plotting is performed. To test for this condition, run one of the example models or run your model at a significantly slower sample rate.

Was this topic helpful?