How to Use Scope in Simulink: Step-by-Step Guide
In Simulink, use the
Scope block to visualize signals during simulation by connecting it to the signal line you want to observe. Open the Scope window during or after simulation to see the signal waveform in real time.Syntax
The Scope block is a graphical tool in Simulink used to display signals. You add it from the Simulink library and connect it to any signal line in your model.
Key parts:
Scope block: Displays signal waveforms.Signal line: Connects the output of a block to the Scope input.Simulation: Runs the model to generate signal data.
text
1. Open Simulink library browser. 2. Drag and drop the Scope block into your model. 3. Connect the output signal line to the Scope input. 4. Run the simulation. 5. Double-click the Scope block to view the signal plot.
Example
This example shows how to use a Scope block to visualize a sine wave signal generated by a Sine Wave block.
text
1. Open Simulink and create a new model. 2. Add a <code>Sine Wave</code> block from the Sources library. 3. Add a <code>Scope</code> block from the Sinks library. 4. Connect the output of the Sine Wave block to the input of the Scope block. 5. Click the Run button to start simulation. 6. Double-click the Scope block to see the sine wave plot.
Output
A window opens showing a smooth sine wave oscillating over time.
Common Pitfalls
- Not connecting the Scope input: The Scope will show no data if not connected to a signal.
- Simulation not run: The Scope only displays data after simulation runs.
- Multiple signals without configuration: Scope shows all signals on one plot by default, which can be confusing.
- Scope window closed: You must open the Scope window manually to see the plot.
text
Wrong way: 1. Add Scope block but do not connect it. 2. Run simulation. 3. Open Scope window - it will be empty. Right way: 1. Connect signal line to Scope input. 2. Run simulation. 3. Open Scope window to view signal.
Quick Reference
| Action | Description |
|---|---|
| Add Scope block | Drag from Sinks library into your model |
| Connect signal | Link output signal line to Scope input port |
| Run simulation | Click Run to generate signal data |
| Open Scope | Double-click Scope block to view signals |
| Configure Scope | Use Scope toolbar to zoom, measure, or add signals |
Key Takeaways
Always connect the Scope block input to the signal you want to visualize.
Run the simulation before opening the Scope window to see data.
Use the Scope toolbar to customize signal display and analysis.
Multiple signals can be viewed in one Scope by connecting multiple inputs.
If the Scope shows no data, check connections and simulation status.