Modulate using CPFSK method
The CPFSKModulator
object modulates using the
continuous phase frequency shift keying method. The output is a baseband
representation of the modulated signal.
To modulate a signal using the continuous phase frequency shift keying method:
Define and set up your CPFSK modulator object. See Construction.
Call step
to modulate the signal
according to the properties of comm.CPFSKModulator
.
The behavior of step
is specific to each object in
the toolbox.
Note
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System object™, you can
call the object with arguments, as if it were a function. For example, y
= step(obj,x)
and y = obj(x)
perform
equivalent operations.
H = comm.CPFSKModulator
creates a modulator System object, H
.
This object modulates the input signal using the continuous phase
frequency shift keying (CPFSK) modulation method.
H = comm.CPFSKModulator(
creates
a CPFSK modulator object, Name
,Value
)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.CPFSKModulator(M,
creates
a CPFSK modulator object, Name
,Value
)H
. This object has
the ModulationOrder
property set to M
,
and the other specified properties set to the specified values.
|
Size of symbol alphabet Specify the size of the symbol alphabet. The value of this property
requires a power of two, real, integer scalar. The default is |
|
Assume bit inputs Specify whether the input is bits or integers. The default is When you set this property to |
|
Symbol encoding Specify the mapping of bit inputs as one of When you set this property to When you set this property to This property applies when you set the |
|
Modulation index Specify the modulation index. The default is where H-1 represents the length of the column vector. The phase shift over a symbol is π × h. When hi varies from interval to interval, the object operates in multi-h. When the object operates in multi-h, hi must be a rational number. |
|
Initial phase offset Specify the initial phase of the modulated waveform in radians
as a real, numeric scalar. The default is |
|
Number of samples per output symbol Specify the upsampling factor at the output as a real, positive,
integer scalar. The default is |
|
Data type of output Specify output data type as one of |
reset | Reset states of CPFSK modulator object |
step | Modulate using CPFSK method |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
This object implements the algorithm, inputs, and outputs described on the CPFSK Modulator Baseband block reference page. The object properties correspond to the block parameters. For CPFSK the phase shift per symbol is π × h, where h is the modulation index.