Contents

comm.DPSKModulator System object

Package: comm

Modulate using M-ary DPSK method

Description

The DPSKModulator object modulates using the M-ary differential phase shift keying method. The output is a baseband representation of the modulated signal.

To modulate a signal using differential phase shift keying:

  1. Define and set up your DPSK modulator object. See Construction.

  2. Call step to modulate a signal according to the properties of comm.DPSKModulator. The behavior of step is specific to each object in the toolbox.

Construction

H = comm.DPSKModulator creates a modulator System object™, H. This object modulates the input signal using the M-ary differential phase shift keying (M-DPSK) method.

H = comm.DPSKModulator(Name,Value) creates an M-DPSK modulator object, H, with each specified property set to the specified value. You can specify additional name-value pair arguments in any order as (Name1,Value1,...,NameN,ValueN).

H = comm.DPSKModulator(M,PHASE,Name,Value) creates an M-DPSK modulator object, H. This object has the ModulationOrder property set to M, the PhaseRotation property set to PHASE, and the other specified properties set to the specified values.

Properties

ModulationOrder

Number of points in signal constellation

Specify the number of points in the signal constellation as a positive, integer scalar value. The default is 8.

PhaseRotation

Additional phase shift

Specify the additional phase difference between previous and current modulated symbols in radians as a real scalar value. The default is pi/8. This value corresponds to the phase difference between previous and current modulated symbols when the input is zero.

BitInput

Assume bit inputs

Specify whether the input is bits or integers. The default is false. When you set this property to true, the step method input must be a column vector of bit values whose length is an integer multiple of log2(ModulationOrder). This vector contains bit representations of integers between 0 and ModulationOrder1. When you set this property to false, the step method input requires a column vector of integer symbol values between 0 and ModulationOrder1.

SymbolMapping

Constellation encoding

Specify how the object maps an integer or group of log2(ModulationOrder) input bits to the corresponding symbol as one of Binary | Gray. The default is Gray. When you set this property to Gray, the object uses a Gray-encoded signal constellation. When you set this property to Binary, the input integer m, between (0m ModulationOrder–1) shifts the output phase. This shift is (PhaseRotation + 2×π×m/ModulationOrder) radians from the previous output phase. The output symbol uses exp(j×PhaseRotation + j×2×π×m/ModulationOrder)×(previously modulated symbol).

OutputDataType

Data type of output

Specify output data type as one of double | single. The default is double.

Methods

cloneCreate M-DPSK modulator object with same property values
getNumInputsNumber of expected inputs to step method
getNumOutputsNumber of outputs from step method
isLockedLocked status for input attributes and nontunable properties
releaseAllow property value and input characteristics changes
resetReset states of M-DPSK modulator object
stepModulate using M-ary DPSK method

Examples

Modulate data using 8-DPSK modulation and visualize the data in a scatter plot.

% Create binary data for 1000, 3 bit symbols
    data = randi([0 1],3000,1);
% Create an 8-DPSK modulator System object with bits as inputs,phase rotation of pi/4 and Gray-coded signal constellation
    hModulator = comm.DPSKModulator(8,pi/4,'BitInput',true);
% Modulate and plot the data
    modData = step(hModulator, data);
    scatterplot(modData)

Algorithms

This object implements the algorithm, inputs, and outputs described on the M-DPSK Modulator Baseband block reference page. The object properties correspond to the block parameters.

Was this topic helpful?