Scopes and Data Logging

Display and record data

DSP Scopes visualize your streaming/real-time data using hardware-inspired interfaces. Use measurements, cursors, triggers, and masks to visually inspect and analyze streaming data. In MATLAB®, you can visualize streaming data using scope System objects. In Simulink®, you can visualize signals using scope blocks or apps, or you can save data to MATLAB with the Time Scope or To Workspace blocks.

Blocks

expand all

Array PlotDisplay vectors or arrays
DisplayShow value of input
Spectrum AnalyzerDisplay frequency spectrum
Time ScopeDisplay and analyze signals generated during simulation and log signal data to MATLAB
To WorkspaceWrite data to workspace
Triggered To WorkspaceWrite input sample to MATLAB workspace when triggered
Spectrum AnalyzerDisplay frequency spectrum
Time ScopeDisplay and analyze signals generated during simulation and log signal data to MATLAB

Functions

expand all

timescopeDisplay time-domain signals
dsp.SpectrumAnalyzerDisplay frequency spectrum of time-domain signals
dsp.ArrayPlotDisplay vectors or arrays
dsp.LogicAnalyzerVisualize, measure, and analyze transitions and states over time
dsp.DynamicFilterVisualizerDisplay time-varying magnitude response of digital filters
dsp.MatrixViewerVisualize matrix data
timescopeDisplay time-domain signals
TimeScopeConfigurationControl Scope block appearance and behavior
generateScriptGenerate MATLAB script to create scope with current settings
dsp.SpectrumAnalyzerDisplay frequency spectrum of time-domain signals
SpectrumAnalyzerConfigurationConfigure Spectrum Analyzer block
isNewDataReadyCheck spectrum analyzer for new data
generateScriptGenerate MATLAB script to create scope with current settings
getSpectrumDataSave spectrum data shown in spectrum analyzer
getSpectralMaskStatusGet test results of current spectral mask
getMeasurementsDataGet the current measurement data displayed on the spectrum analyzer
dsp.LogicAnalyzerVisualize, measure, and analyze transitions and states over time
addCursorAdd cursor to Logic Analyzer
addDividerAdd divider to Logic Analyzer
addWaveAdd wave to Logic Analyzer
deleteCursorDelete Logic Analyzer cursor
deleteDisplayChannelDelete Logic Analyzer channel
getCursorInfoReturn settings for Logic Analyzer cursor
getCursorTagsReturn all Logic Analyzer cursor tags
getDisplayChannelInfoReturn settings for Logic Analyzer display channel
getDisplayChannelTagsReturn all Logic Analyzer display channel tags
modifyCursorModify properties of Logic Analyzer cursor
modifyDisplayChannelModify properties of Logic Analyzer display channel
moveDisplayChannelMove position of Logic Analyzer display channel
dsp.ArrayPlotDisplay vectors or arrays
ArrayPlotConfigurationControl Array Plot block appearance and behavior from MATLAB
generateScriptGenerate MATLAB script to create scope with current settings
dsp.MatrixViewerVisualize matrix data
setCursorDataLabelsCustomize data labels for cursor measurements
dsp.DynamicFilterVisualizerDisplay time-varying magnitude response of digital filters
stepDisplay time-varying magnitude response
dsp.SignalSinkLog simulation data in buffer

Apps

Logic AnalyzerVisualize, measure, and analyze transitions and states over time

Topics

Scope Configuration

Control Scope Blocks Programmatically (Simulink)

This example shows how to control scopes with programming scripts.

Common Scope Block Tasks

Step-by-step procedures of common scope tasks, including logging data, sharing scope images, and display manipulation.

Configure Spectrum Analyzer

Customize Spectrum Analyzer properties, set up spectral masks, and use measurement tools.

Configure Array Plot Block

Customize Array Plot properties and use measurement tools.

Configure Array Plot MATLAB Object

Customize dsp.ArrayPlot properties and use measurement tools.

Configure Time Scope Block

Customize scope properties and use measurement tools.

Configure Time Scope MATLAB Object

Customize timescope properties and use measurement tools.

Configure Logic Analyzer

Adjust setting in the Logic Analyzer.

Scope Workflows

Display Time-Domain Data

Display signals in the time domain.

Display Frequency-Domain Data in Spectrum Analyzer

This example shows how you can use a Spectrum Analyzer block to display the frequency content of two frame-based signals simultaneously.

Visualize Central Limit Theorem in Array Plot

This example shows how to use and configure the dsp.ArrayPlot System object to visualize the Central Limit Theorem.

Inspect and Measure Transitions Using the Logic Analyzer

Learn the basics of the Logic Analyzer.

Time Scope Measurements

This example shows how to measure performance characteristics of a pulse width modulated sinusoid.

Spectrum Analyzer Measurements

This example shows how to perform measurements using the Spectrum Analyzer block.

Data Logging

Sample- and Frame-Based Concepts

Introduction to real-world sample- and frame-based signals, and how to model those signals in MATLAB and Simulink.

Inspect Sample and Frame Rates in Simulink

Learn how to determine the sample and frame rates of signals in your model.

Export Signal Data Using Signal Logging (Simulink)

To capture signal data from a simulation, you can use signal logging. Mark the signals that you want to log and enable signal logging for the model.

Configure a Signal for Logging (Simulink)

Mark the signals that you want to log simulation data for.

Enable Signal Logging for a Model (Simulink)

To log signals marked for signal logging, set the Signal logging configuration parameter.

Common Scope Block Tasks

Step-by-step procedures of common scope tasks, including logging data, sharing scope images, and display manipulation.

Related Information

Array Plot with Apple iOS Devices (Simulink Support Package for Apple iOS Devices)

Array Plot with Android Devices

Featured Examples