View Data During Simulation
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
Scope | Display signals generated during simulation |
Floating Scope and Scope Viewer | Display signals generated during simulation without signal lines |
Record | View and log data to the workspace, a file, or both (Since R2021a) |
Objects
TimeScopeConfiguration | Control Scope block appearance and behavior |
Tools
Simulation Data Inspector | Inspect and compare data and simulation results to validate and iterate model designs |
Topics
- Decide How to Visualize Simulation Data
Choose the right visualization technique for each modeling and simulation task.
- Common Scope Block Tasks
Step-by-step procedures of common scope tasks, including logging data, sharing scope images, and display manipulation.
- View Values of Parameters Set as Variables
Evaluate parameters defined as variables or variable expressions while editing a model and during simulation.
- Floating Scope and Scope Viewer Tasks
Step-by-step procedures for frequently carried out Floating Scope block and Scope viewer tasks.
- Control Scope Blocks Programmatically
This example shows how to control scopes with programming scripts.
- Sample Time with Scope Blocks
Understand sample time inheritance when using the Scope and Time Scope blocks.
- Scope Blocks and Scope Viewer Overview
Choices about how to display simulation results graphically.
- Prototype and Debug Models with Scopes
Prototype and debug models by using scopes and scope measurements.
- Viewers and Generators Manager
Generate and visualize signals without blocks.
- Generate Signals Without Source Blocks
Step-by-step procedures for attaching, modifying, and removing signal generators.
- View Streaming Data in the Simulation Data Inspector
Control the time axis, display scaling, and display offset while data is streaming in the Simulation Data Inspector.
- Control Display of Streaming Data Using Triggers
Use triggers in the Simulation Data Inspector to control when plot displays update to display new data.
- Access Data in MATLAB Function During Simulation
Stream signal data to a MATLAB® callback function during simulation for processing and visualization.