Main Content

View Data During Simulation

View data during simulation using Scope blocks, the Record block, or the Simulation Data Inspector

Use the scopes and viewers in Simulink® to visualize and measure signals during simulation, to debug models, and to validate your designs. You can connect signals to the Scope block or add the Floating Scope and Scope Viewer to the model without connecting the signal lines. Use the simulation results to validate and iterate on your designs. To learn more, see Prototype and Debug Models with Scopes.

The measurement settings in the scopes enable you to measure various aspects of the signals that you are displaying in the scope window. For example, you can measure the signal values using cursors, compute signal statistics, find peak values, display bilevel measurements such as signal transitions, overshoots, undershoots, and cycles, and even set triggers to sync repeating signals and pause the display when specific events occur.

The scope container enables you to dock multiple scopes of the Simulink model into a single window. The container provides a convenient interface from which you can visualize the signals and manage the settings of the scopes.

You can also view and log the simulation data to workspace, a file, or both using the Record block. Using the Simulation Data Inspector, you can inspect and compare data and simulation results thereby validating and iterating on your model design.

Blocks

ScopeDisplay signals generated during simulation
Floating Scope and Scope ViewerDisplay signals generated during simulation without signal lines
RecordView and log data to the workspace, a file, or both (Since R2021a)

Objects

TimeScopeConfigurationControl Scope block appearance and behavior

Tools

Simulation Data InspectorInspect and compare data and simulation results to validate and iterate model designs

Topics

Featured Examples