Adaptively adjust gain for constant signal-level output
RF Impairments Correction
The automatic gain controller (AGC) block adaptively adjusts its gain to achieve a constant signal level at the output.
Specify the step size for gain updates as a double-precision
or single-precision real positive scalar. The default is
If you increase Step size, the AGC responds faster to changes in the input signal level. However, gain pumping also increases.
Specify the desired output power level as a real positive scalar.
The power level is specified in Watts referenced to 1 ohm. The default
Specify the length of the averaging window in samples as a positive
integer scalar. The default is
If you use the AGC with higher order QAM signals, you might need to reduce the variation in the gain during steady-state operation. Inspect the constellation diagram at the output of the AGC and increase the averaging length as needed. An increase in Averaging length reduces execution speed.
Specify the maximum gain of the AGC in decibels as a positive
scalar. The default is
If the AGC input signal power is very small, the AGC gain will be very large. This can cause problems when the input signal power suddenly increases. Use Maximum power gain (dB) to avoid this by limiting the gain that the AGC applies to the input signal.
Select this check box to provide an input signal power estimate to an output port. By default, the check box is not selected.
Select the simulation mode.
On the first model run, simulate and generate code. If the structure of the block does not change, subsequent model runs do not regenerate the code.
If the simulation mode is
System objects corresponding to the blocks accept a maximum of nine
Simulate model without generating code. This option results in faster start times but can slow subsequent simulation performance.
This block implements the algorithm, inputs, and outputs described
page. The object properties correspond to the block parameters.
To open these examples, enter the example names at the MATLAB command prompt: