dsp.TimeScope
(To be removed) Time domain signal display and measurement
Description
Note
dsp.TimeScope
is not recommended. Use timescope
instead.
For more information, see Version History
The dsp.TimeScope
System object™ displays time-domain signals. You can use the scope to measure signal values,
find peaks, display bilevel measurements and statistics.
To see time-domain signals in the scope:
Create the
dsp.TimeScope
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Oscilloscope features:
Triggers — Set triggers to sync repeating signals and pause the display when events occur.
Cursor Measurements — Measure signal values using vertical and horizontal cursors.
Signal Statistics — Display the maximum, minimum, peak-to-peak difference, mean, median, and RMS values of a selected signal.
Peak Finder — Find maxima, showing the x-axis values at which they occur.
Bilevel Measurements — Measure transitions, overshoots, undershoots, and cycles.
For information on measurements and triggers, see Configure Time Scope Block.
Scope display features:
Multiple signals — Plot multiple signals on the same y-axis (display) using multiple input ports.
Multiple y-axes (displays) — Display multiple y-axes. All the y-axes have a common time range on the x-axis.
Modify parameters — Modify scope parameter values before and during a simulation.
Axis autoscaling — Autoscaling during or at the end of a simulation. Margins are drawn at the top and bottom of the axes.
Creation
Syntax
Description
returns a Time Scope
System object, scope
= dsp.TimeScopescope
. This object displays real- and complex-valued
floating and fixed-point signals in the time domain.
creates a Time Scope and sets the NumInputPorts property to scope
= dsp.TimeScope(numInputs
,sampleRate
)numInputs
and the SampleRate
property to sampleRate
.
sets properties specified as Name,Value pairs.scope
= dsp.TimeScope(___,Name,Value)
Properties
Usage
Description
displays the signal, scope
(signal
)signal
, in the time scope display.
displays the signals scope
(signal
,signal2,...,signalN)signal
,
signal2
,...,signalN
in the time scope display
when you set the NumInputPorts
property to N
. In
this case, signal1
,
signal2
,...,signalN
can have different data
types and dimensions.
Input Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
If you want to restart the simulation from the beginning, call reset
to
clear the scope window displays. Do not call reset
after calling
release
.
Examples
Tips
To close the scope window and clear its associated data, use the MATLAB®
clear
function.To hide or show the scope window, use the
hide
andshow
functions.Use the MATLAB
mcc
function to compile code containing a scope.You cannot open scope configuration dialogs if you have more than one compiled component in your application.