Measure period, frequency, duty cycle, rise time, fall time, and delay of a signal
Mixed-Signal Blockset / Utilities
The Timing Measurement block measures the basic timing metrics such as period, frequency, duty cycle, rise time, fall time, and delay of a signal.
reference
— Input signalInput signal whose timing metrics are being measured, specified as a scalar.
Data Types: double
test
— Test signalTest signal against which the delay of the input signal is measured, specified as a scalar.
To enable this port, select Delay as a measurement option in the Selection tab.
Data Types: double
period
— Period of input signalPeriod of the input signal, returned as a scalar.
Data Types: double
frequency
— Frequency of input signalFrequency of the input signal, returned as a scalar.
To enable this port, select Frequency as a measurement option in the Selection tab.
Data Types: double
rise time
— Rise time of input signalRise time of the input signal, returned as a scalar.
To enable this port, select Rise Time as a measurement option in the Selection tab.
Data Types: double
fall time
— Fall time of input signalFall time of the input signal, returned as a scalar.
To enable this port, select Fall time as a measurement option in the Selection tab.
Data Types: double
duty cycle
— Duty cycle of input signalDuty cycle of the input signal, returned as a scalar.
To enable this port, select Duty Cycle as a measurement option in the Selection tab.
Data Types: double
delay
— Delay of input signalDelay of the input signal, returned as a scalar.
To enable this port, select Delay as a measurement option in the Selection tab.
Data Types: double
Period
— Measure period of input signalSelect to measure the period of the input signal.
Period is defined as the time required to complete one full cycle of a periodic signal, specified in seconds.
Frequency
— Measure frequency of input signalSelect to measure the frequency of the input signal.
Frequency is defined as the number of cycles completed per unit of time by a periodic signal, specified in hertz. It is the inverse of Period.
Rise Time
— Measure rise time of input signalSelect to measure the rise time of the input signal.
Rise time is defined as the time required by the rising edge of the signal to reach from 10% to 90% (or 20% to 80%) of its steady state value, specified in seconds.
Fall Time
— Measure fall time of input signalSelect to measure the fall time of the input signal.
Fall time is defined as the time required by the falling edge of the signal to go from 90% to 10% (or 80% to 20%) of its steady state value, specified in seconds.
Duty Cycle
— Measure duty cycle of input signalSelect to measure the duty cycle of the input signal.
Duty cycle is defined as the ratio of positive pulse width to period, specified as a fraction.
Delay
— Measure delay of input signalSelect to measure the delay of the input signal.
Delay is defined as the time difference between the threshold crossing points between the signal of interest against a test signal, specified in seconds.
Use same reference threshold for all measurements
— Use the same reference threshold for measuring all timing metricsSelect to use the same reference threshold for measuring all timing metrics.
Reference threshold (V)
— Reference threshold used for measuring timing metrics0
(default) | scalarReference threshold voltage used for measuring all timing metrics, specified as a scalar in volts.
To enable this parameter, select Use same reference threshold for all measurements in the Configuration tab.
Use get_param(gcb,'SameRefThreshold')
to view the
current value of Reference threshold (V).
Use set_param(gcb,'SameRefThreshold',value)
to set
Reference threshold (V) to a specific value.
Reference threshold (V)
— Reference threshold voltage used to measure period and/or frequency0
(default) | scalarReference threshold voltage used to measure the period and/or the frequency of the signal of interest, specified as a scalar in volts.
To enable this parameter, deselect Use same reference threshold for all measurements in the Configuration tab and select Period and/or Frequency in the Selection tab.
Use get_param(gcb,'PeriodRefThreshold')
to view the
current value of Reference threshold (V).
Use set_param(gcb,'PeriodRefThreshold',value)
to set
Reference threshold (V) to a specific value.
Input range (V)
— Peak-to-peak value of input signal[-1 1]
(default) | 2-element row vectorPeak-to-peak value of the input signal, specified as a 2-element row vector in volts. The first element defines the notch value of the input signal and the second element defines the peak value. Input range (V) is used to calculate the upper and lower threshold levels to calculate the rise/fall times.
To enable this parameter, select Rise Time and/or Fall Time in the Selection tab.
Use get_param(gcb,'Range')
to view the current value of
Reference threshold (V).
Use set_param(gcb,'Range',value)
to set
Reference threshold (V) to a specific value.
Type
— Input threshold levels to measure rise/fall times80%/20%
(default) | 90%/10%
Determines the input threshold levels to measure the rise/fall times, specified as
either 80%/20%
or
90%/10%
.
To enable this parameter, select Rise Time and/or Fall Time in the Selection tab.
Use get_param(gcb,'MeasurementType')
to view the
current value of Reference threshold (V).
Use set_param(gcb,'MeasurementType',value)
to set
Reference threshold (V) to a specific value.
Reference threshold (V)
— Reference threshold voltage used to measure duty cycle0
(default) | scalarReference threshold voltage used to measure the duty cycle of the signal of interest, specified as a scalar in volts.
To enable this parameter, deselect Use same reference threshold for all measurements in the Configuration tab and select Duty Cycle in the Selection tab.
Use get_param(gcb,'DcRefThreshold')
to view the current
value of Reference threshold (V).
Use set_param(gcb,'DcRefThreshold',value)
to set
Reference threshold (V) to a specific value.
Reference threshold (V)
— Threshold voltage level in signal of interest used to measure delay0
(default) | scalarThreshold voltage level in reference signal of interest whose delay is being measured, specified as a scalar in volts.
To enable this parameter, deselect Use same reference threshold for all measurements in the Configuration tab and select Delay in the Selection tab.
Use get_param(gcb,'DelayRefThreshold')
to view the
current value of Reference threshold (V).
Use set_param(gcb,'DelayRefThreshold',value)
to set
Reference threshold (V) to a specific value.
Test threshold (V)
— Threshold voltage level in test signal used to measure delay0
(default) | scalarThreshold voltage level in test signal against which the delay of the reference signal is being measured, specified as a scalar in volts.
To enable this parameter, deselect Use same reference threshold for all measurements in the Configuration tab and select Delay in the Selection tab.
Use get_param(gcb,'DelayTstThreshold')
to view the
current value of Reference threshold (V).
Use set_param(gcb,'DelayTstThreshold',value)
to set
Reference threshold (V) to a specific value.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
Select web siteYou can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.