This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Prototype and Debug Models with Scopes

Simulink® Scope blocks and Scope viewers offer a quick and lightweight way to visualize your simulation data over time. If you are prototyping a model design, you can attach signals to a Scope block. After simulating the model, you can use the results to validate your design. See Scope Blocks and Scope Viewer Overview and Model and Validate a System.

A Scope block or Scope viewer opens to a Scope window where you can display and evaluate simulation data.

The toolbar contains controls for starting, stopping, and stepping forward through a simulation . You can use these controls to debug a model by viewing signal data at each time interval. See How Stepping Through a Simulation Works.

Connect signal lines to a Scope block using multiple input ports, see Number of input ports.

Attach signals to a Floating Scope block or signal viewer directly from the model. See Connect Signals to Floating Scope Block or Scope Viewer.

Use the oscilloscope-like tools available with a scope to debug your model. Set triggers to capture events, use interactive cursors to measure signal values at various points, and review signal statistics such as maximum and mean values. See Scope Triggers Panel and Cursor Measurements Panel.

Save or log signal data to the MATLAB® workspace, and then plot data in a MATLAB figure widow. Use MATLAB functions or your own scripts to analyze the data. See Save Simulation Data Using Floating Scope Block.

See Also

| |

Related Topics