measurements
(Removed) Measure eye diagram parameters
Syntax
Description
Examples
Rise and Fall Time of NRZ Signal
Create a combined jitter object having random jitter with a 2e-4 standard deviation.
jtr = commsrc.combinedjitter('RandomJitter','on','RandomStd',2e-4);
Generate an NRZ signal having random jitter and 3 ms rise and fall times.
genNRZ = commsrc.pattern('Jitter',jtr,'RiseTime',3e-3,'FallTime',3e-3); x = generate(genNRZ,2000);
Pass the signal through an AWGN channel with fixed seed for repeatable results.
randStream = RandStream('mt19937ar','Seed',5489); y = awgn(x,30,'measured',randStream);
Create an eye diagram object. Enable the measurements.
ed = comm.EyeDiagram('SamplesPerSymbol',genNRZ.SamplesPerSymbol, ... 'SampleRate',genNRZ.SamplingFrequency, ... 'SampleOffset',genNRZ.SamplesPerSymbol/2, ... 'EnableMeasurements',true,'DisplayMode','2D color histogram', ... 'OversamplingMethod','Input interpolation', ... 'ColorScale','Logarithmic','YLimits',[-1.2 1.2]);
To compute the rise and fall times, determine the rise and fall thresholds from the eye level and eye amplitude measurements. Plot the eye diagram to calculate these parameters.
ed(y)
Pass the signal through the eye diagram object again to measure the rise and fall times.
ed(y) hide(ed)
Display the data by using the measurements method.
eyestats = measurements(ed); riseTime = eyestats.RiseTime fallTime = eyestats.FallTime
riseTime = 0.0030 fallTime = 0.0030
The measured values match the 3 ms specification.
Input Arguments
ed
— Eye Diagram System object
System object
Eye Diagram System object, where the parameter measurements are calculated.
Output Arguments
m
— Eye Diagram parameters measurement
struct
Eye Diagram parameters measurement, returned as a structure containing all 18 parameters mentioned in Measurements, along with their values.
Data Types: double
Version History
Introduced in R2016bR2022a: comm.EyeDiagram
has been removed
measurements has been removed. To display the eye diagram of a signal, use the eyediagram
function instead.
MATLAB Command
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.
Select a Web Site
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: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)