Pulse metrics of bilevel waveforms
The dsp.PulseMetrics
object computes rise times, fall
times, pulse widths, and cycle metrics including pulse period, pulse separation, and duty
cycle for bilevel waveforms.
To obtain pulse metrics for a bilevel waveform:
Create the dsp.PulseMetrics
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 pulse
metrics System object™, pm
= dsp.PulseMetricspm
. The object computes the rise time, fall time, and
width of a pulse. dsp.PulseMetrics
also computes cycle
metrics such as pulse separations, periods, and duty cycles. Because a pulse contains two
transitions, the object contains a superset of the capability defined in dsp.TransitionMetrics
.
returns a pm
= dsp.PulseMetrics(Name,Value
)PulseMetrics
System object, pm
, with each specified property set to
the specified value.
[
returns a structure array, pulse
,transition
] = pm(x
)transition
, when you set the
TransitionOutputPort
property to true
. The
fields of transition
contain real-valued matrices with two columns
that 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
] = pm(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 array.
[
returns a structure array, pulse
,settling
] = pm(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
] = pm(x
)pulse
, cycle
,
transition
, preshoot
,
postshoot
, and settling
structures 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.