Display constellation diagram for input signals
The comm.ConstellationDiagram
System object™ displays real and complex-valued floating and fixed-point signals in the IQ
plane. Use this System object to perform qualitative and quantitative analysis on modulated single-carrier
signals.
In the constellation diagram window you can:
Input and plot multiple signals on a single constellation diagram. You can define one reference constellation for each input signal. For more information, see ReferenceConstellation.
Choose which channels are displayed by selecting signals in the legend. Use the
ShowLegend
property to display
the legend. For a multichannel signal, specify the input as a matrix with individual
signals defined in the columns of the matrix.
Display the EVM / MER Measurements panel, which displays calculated error
vector magnitude (EVM) and modulation error ratio (MER) measurements. When multiple
signals are input to a comm.ConstellationDiagram
System object, use the Trace Selection pane to choose the signal
being measured.
To display constellation diagrams:
Create the comm.ConstellationDiagram
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?.
returns a constdiag
= comm.ConstellationDiagramcomm.ConstellationDiagram
System object that displays real and complex-valued floating and fixed-point signals in
the IQ plane.
set the properties of the System object using one or more name-value pair arguments in any order as
(constdiag
= comm.ConstellationDiagram(Name
,Value
)Name1
,Value1
,...,NameN
,ValueN
).
constdiag = comm.ConstellationDiagram('SampleOffset',1e3)
specifies that the first 1000
samples received will not be
displayed.constdiag(signal1,signal2,...,signalN)
displays up to
NumInputPorts
signals in one constellation diagram.
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)
If you want any of these features, use a comm.ConstellationDiagram
System object.
Measurements
Basic reference constellations
Signal trajectory plots
Maintaining state between calls
If you want a simple signal constellation snapshot, use the scatterplot
function.