Generate real or complex sinusoidal signals
The numerically controlled oscillator, orNCO
, object generates real or complex sinusoidal signals. The amplitude of the generated signal is always 1.
To generate real or complex sinusoidal signals:
Define and set up your NCO System object™. SeeConstruction.
Callstep
to generate the signals according to the properties ofdsp.NCO
. The behavior ofstep
is specific to each object in the toolbox.
Starting in R2016b, instead of using thestep
卫理公会教徒d 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)
andy = obj()
perform equivalent operations.
nco = dsp.NCO
returns an NCO System object,nco
, that generates a multichannel real or complex sinusoidal signal, with independent frequency and phase in each output channel.
nco = dsp.NCO('
returns anPropertyName
',PropertyValue
,...)NCO
System object,nco
, with each specified property set to the specified value.
|
Source of phase increment Indicate how to specify the phase increment: |
|
Phase increment Specify the phase increment as an integer scalar. This property applies only when you set thePhaseIncrementSourceproperty to |
|
Source of phase offset Specify the phase offset as |
|
Phase offset Specify the phase offset as an integer scalar. This property applies only when you set thePhaseOffsetSourceproperty to |
|
Enable adding internal dithering to NCO algorithm Set this property to |
|
Number of dither bits Specify the number of dither bits as a positive integer. This property applies only when you set the |
|
Enable quantization of accumulated phase Set this property to |
|
Number of quantizer accumulator bits Specify the number of quantizer accumulator bits as an integer scalar greater than 1 and less than the accumulator word length. This property determines the number of entries in the lookup table of sine values. This property applies only when you set thePhaseQuantizationproperty to |
|
Enable output of phase quantization error Set this property to |
|
Type of output signal Specify the type of the output signal: |
|
Number of output samples per frame Specify the number of samples per frame of the output signal. This property applies only when you set thePhaseOffsetSourceproperty to |
|
Output data type Specify the output data type as |
info | Characteristic information about generated signal |
reset | Reset accumulator of NCO object |
step | 产生多通道真实的或复杂的正弦ignal using NCO (Numerically Controlled Oscillator) |
Common to All System Objects | |
---|---|
release |
Allow System object property value changes |
This object implements the algorithm, inputs, and outputs described on theNCOblock reference page. The object properties correspond to the block properties, except:
There is no object property that corresponds to theSample timeblock parameter. The objects assumes a sample time of one second. |