Transition metrics of bilevel waveforms
The dsp.TransitionMetrics
object extracts information
such as duration, slew rate, and reference-level crossings for each transition found in the
bilevel waveform. The dsp.TransitionMetrics
object can
additionally return preshoot, postshoot and settling metrics for the regions immediately
before and after each transition.
To obtain transition metrics for a bilevel waveform:
Create the dsp.TransitionMetrics
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?.
creates a
transition metrics System object™, tm
= dsp.TransitionMetricstm
. The object computes the rise time,
fall time, and width of a pulse. TransitionMetrics
additionally computes cycle metrics such as pulse separations, periods, and duty
cycles.
tm = dsp.TransitionMetrics(
returns a Name,Value
)TransitionMetrics
System object, tm
, with each specified property set to
the specified value.
[
returns a structure array, pulse
,transition
] = tm(x
)transition
, when you set the
TransitionOutputPort
property to true
. The
fields of transition
contain real-valued matrices with two columns,
which correspond to the metrics of the first and second transitions. The number of rows
corresponds to the number of pulses found in the input waveform.
[
returns a structure array, pulse
,preshoot
] = tm(x
)preshoot
, when you set the
PreshootOutputPort
property to true
. The fields
of preshoot
contain real-valued two-column matrices whose row length
corresponds to the number of transitions found in the input waveform. The field names are
identical to those of the postshoot
structure.
[
returns a structure, pulse
,settling
] = tm(x
)settling
, when you set the
SettlingOutputPort
property to true
. The fields
of settling
correspond to the settling metrics for each transition.
Each field is a column vector whose elements correspond to the individual settling
durations, levels, and instants.
[
which returns the pulse
,cycle
,transition
,preshoot
,postshoot
,settling
] = tm(x
)pulse
, cycle
,
transition
, preshoot
,
postshoot
, and settling
structure arrays when
the CycleOutputPort
, PreshootOutputPort
,
PostshootPort
, and SettlingOutputPort
properties are true
. You may enable or disable any combination of
output ports. However, the output arguments are defined in the order shown here.
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)
[1] IEEE® Standard on Transitions, Pulses, and Related Waveforms, IEEE Standard 181, 2003.