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.

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
Matrix ViewerDisplay matrices as color images
WaterfallView vectors of data over time
To WorkspaceWrite data to MATLAB 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

hideHide scope window
showDisplay scope window
isVisibleDetermine visibility of scope
dsp.SpectrumAnalyzerDisplay frequency spectrum of time-domain signals
SpectrumAnalyzerConfigurationConfigure Spectrum Analyzer for programmatic access
isNewDataReadyCheck spectrum analyzer for new data
generateScriptGenerate MATLAB script to create dsp.SpectrumAnalyzer 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.TimeScopeTime domain signal display and measurement
TimeScopeConfigurationControl Scope block appearance and behavior
dsp.ArrayPlotDisplay vectors or arrays
ArrayPlotConfigurationArray Plot block appearance and behavior
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

Simulink Visualization Tool

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

Topics

Scope Configuration

Control Scope Blocks Programmatically (Simulink)

Control scopes with programming scripts.

Configure Spectrum Analyzer

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

Configure Array Plot

Customize Array Plot properties and use measurement tools.

Configure Time Scope

Customize scope properties and use measurement tools.

Common Scope Block Tasks

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

Inspect and Analyze Models in Simulink

Choose a Simulink visualization tool.

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