Main Content

jitterSinusoidal

Measure sinusoidal jitter from waveform

Since R2024b

Description

[aSJ,fSJ] = jitterSinusoidal(x,y,SymbolTime = t) measures the amplitude and frequency of the sinusoidal jitter from input jittery waveform by using the specified symbol time.

Sinusoidal jitter captures the periodic trend in timing error in the fundamental waveform separate from its harmonics.

The function estimates sinusoidal jitter based on an FFT with a rectangular window. Measurement accuracy is directly correlated with how well centered each component is on its frequency bin. The SymbolTime argument is used as the time step of the FFT data. The number of FFT points is one less than the number of symbols. If there are no held symbols, then the number of FFT points equals to the number of edges.

[aSJ,fSJ] = jitterSinusoidal(y,SampleInterval = s,SymbolTime = t) measures the sinusoidal jitter by using the specified sample interval and symbol time.

[aSJ,fSJ] = jitterSinusoidal(x,y,xr,yr) measures the sinusoidal jitter from input jittery waveform with respect to the reference waveform.

[aSJ,fSJ] = jitterSinusoidal(y,yr,SampleInterval = s) measures the sinusoidal jitter with respect to the reference waveform and specified sample interval.

[aSJ,fSJ] = jitterSinusoidal(___,Name=Value) measures the sinusoidal jitter using name-value arguments. Unspecified arguments take default values.

[aSJ,fSJ,pSJ] = jitterSinusoidal(___) measures the amplitude, frequency, and phase of the sinusoidal jitter using the above arguments.

Input Arguments

collapse all

Time coordinates of the jittery signal, specified as a monotonically increasing vector.

If you do not provide y, the function interprets x as edge times.

Data Types: double

Amplitude coordinates of the jittery signal, specified as a vector or as an eyeDiagramSI object.

If you do not provide x, the function assumes y is uniformly sampled at the rate specified by SampleInterval.

Data Types: double

Time coordinates of the reference signal, specified as a monotonically increasing vector.

Data Types: double

Amplitude coordinates of the reference signal, specified as a vector. If you do not provide x, yr must be sampled at the same points as y.

Data Types: double

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: J = jitterSinusoidal(x,y,SampleInterval = s, Plot = on) calculates and plots the sinusoidal jitter from the input waveform defined by (x,y) and sample interval specified by s.

Thresholds to separate symbol levels in the jittery waveform, specified as a vector. If you do not provide SymbolThresholds, the function calculates it from the histogram of y.

Data Types: double

Thresholds to separate symbol levels in the reference waveform, specified as a vector. If you do not provide ReferenceThresholds, the function calculates it from the histogram of yr.

Data Types: double

Sample time for uniformly sampled jittery and reference waveforms, specified as a scalar.

When you provide the time vectors of jittery and reference signals, the function ignores SampleInterval and uses time vectors instead.

Data Types: double

Symbol time for uniformly sampled jittery and reference waveforms, specified as a scalar. For clock waveforms, SymbolTime is half the of the period.

Note

The timing error waveform is resampled based on the value of SymbolTime. So you must provide an accurate value.

Data Types: double

Options to compare the data edge to the clock edge, specified as one of these:

  • time — Compares the closest edge times.

  • order — Compares the first edge on each set.

The function uses this argument in two scenarios only:

  • Both the measured and reference waveforms are clocks.

  • The measured waveform is a data waveform and the reference waveform is a clock waveform.

When both waveforms are data waveforms with the same pattern, the function matches the edges is based on the pattern.

Option to display histogram of random jitter, specified as true (1) or false or (0).

Data Types: logical

Maximum number of sinusoidal jitter frequencies to measure, specified as a scalar.

Data Types: double

Output Arguments

collapse all

Amplitude of each sinusoidal jitter component, returned as a vector. The unit is the same as the unit of x and xr.

Frequency of each sinusoidal jitter component, returned as a vector. The unit is the inverse of the unit of x and xr.

Phase of each sinusoidal jitter component, returned as a vector. The unit is in radian.

Version History

Introduced in R2024b

See Also

(Mixed-Signal Blockset) | (Mixed-Signal Blockset) | (Mixed-Signal Blockset) | (Mixed-Signal Blockset) | (Mixed-Signal Blockset) | (Mixed-Signal Blockset) | (Mixed-Signal Blockset) | (Mixed-Signal Blockset)