adi.ADRV9002.Rx

The adi.ADRV9002.Rx System object is a signal source that can receive
complex data from the ADRV9002.

rx = adi.ADRV9002.Rx;
rx = adi.ADRV9002.Rx('uri','ip:192.168.2.1');

Significant configuration of the transceiver is done by loading profiles
created through the Transceiver Evaluation Software (TES). This includes
settings such as sample rate, bandwidth, data interface format, and TDD
or FDD operation. For more information on creating and loading profiles,
refer to the ADRV9002 documentation.

ADRV9002 Datasheet
Creation

The class can be instantiated in the following way with and without property name value pairs.

dev = adi.ADRV9002.Rx
dev = adi.ADRV9002.Rx(Name, Value)
Properties
Unless otherwise indicated, properties are non-tunable, which means you cannot change their values after calling the object. Objects lock when you call them, and the release function unlocks them.

If a property is tunable, you can change its value at any time.

For more information on changing property values, see System Design in MATLAB Using System Objects.

specified as one of the following: ‘calibrated’ ‘primed’ ‘rf_enabled’

specified as one of the following: ‘calibrated’ ‘primed’ ‘rf_enabled’

This is the final gain in the digital path with possible values: -36:6:18 This gain should be selected based on primary signal bandwidth. For narrowband applications higher levels of interface gain should be used (0:18) to allow signal level and analog noise to dominate. For wideband applications this gain should be reduced or disabled since quantization noise is minimal. Note that the available options for this gain depend on the profile loaded and picking an option outside of those options generates an error.

This is the final gain in the digital path with possible values: -36:6:18 This gain should be selected based on primary signal bandwidth. For narrowband applications higher levels of interface gain should be used (0:18) to allow signal level and analog noise to dominate. For wideband applications this gain should be reduced or disabled since quantization noise is minimal. Note that the available options for this gain depend on the profile loaded and picking an option outside of those options generates an error.

The digital gain control has two major purposes, one for gain correction which is to correct the small step size inaccuracy in analog front-end attenuation and the other for gain compensation which is to compensate for the entire analog front-end attenuation. The digital gain block is controlled by the Rx gain table. Different digital gain will be applied when configured in gain correction or gain compensation mode. The Rx gain table has a unique front-end attenuator setting, with a corresponding amount of digital gain, programmed at each index of the table. In the end of the Rx data path, the interface gain could be further applied by using a “Slicer” block for 2 major purposes. One is to avoid digital saturation in gain compensation mode. The other one is to ensure the overall SNR is limited only by analog noise and unaffected by quantization noise. Gain correction should be used when external components (LNA or DSA) does not need to be controlled. Compensation should be used for external LNA or DSA control. Gain control is specified as one of the following: ‘automatic’ - Automatically adjust interface gain ‘spi’ - Manually adjust interface gain

The digital gain control has two major purposes, one for gain correction which is to correct the small step size inaccuracy in analog front-end attenuation and the other for gain compensation which is to compensate for the entire analog front-end attenuation. The digital gain block is controlled by the Rx gain table. Different digital gain will be applied when configured in gain correction or gain compensation mode. The Rx gain table has a unique front-end attenuator setting, with a corresponding amount of digital gain, programmed at each index of the table. In the end of the Rx data path, the interface gain could be further applied by using a “Slicer” block for 2 major purposes. One is to avoid digital saturation in gain compensation mode. The other one is to ensure the overall SNR is limited only by analog noise and unaffected by quantization noise. Gain correction should be used when external components (LNA or DSA) does not need to be controlled. Compensation should be used for external LNA or DSA control. Gain control is specified as one of the following: ‘automatic’ - Automatically adjust interface gain ‘spi’ - Manually adjust interface gain

Must be greater than 0

Must be greater than 0

specified as one of the following: ‘spi’ ‘pin’

specified as one of the following: ‘spi’ ‘pin’

specified as one of the following: ‘spi’ ‘pin’ ‘automatic’

specified as one of the following: ‘spi’ ‘pin’ ‘automatic’

AGC on the fly tracking calibration for Channel 0

AGC on the fly tracking calibration for Channel 1

Baseband DC rejection on the fly tracking calibration for Channel 0

Baseband DC rejection on the fly tracking calibration for Channel 1

Harmonic Distortion on the fly tracking calibration for Channel 0

Harmonic Distortion on the fly tracking calibration for Channel 1

Quadrature Error Correction Narrowband FIC on the fly tracking calibration for channel 0

Quadrature Error Correction Narrowband FIC on the fly tracking calibration for channel 1

Quadrature Error Correction Wideband Poly on the fly tracking calibration for channel 0

Quadrature Error Correction Wideband Poly on the fly tracking calibration for channel 1

RF DC on the fly tracking calibration for channel 0

RF DC on the fly tracking calibration for channel 1

RSSI on the fly tracking calibration for channel 0

RSSI on the fly tracking calibration for channel 1

Received signal strength indicator. This valid is only valid once the object has been stepped and MATLAB connects to hardware

Received signal strength indicator. This valid is only valid once the object has been stepped and MATLAB connects to hardware

Number of samples per frame, specified as an even positive integer from 2 to 16,777,216. Using values less than 3660 can yield poor performance.

Enable use of custom Profile file to set SamplingRate, RFBandwidth, and other features of transceiver

Path to custom Profile file created from profile wizard

Path to custom stream file created from profile wizard

Baseband sampling rate in Hz, specified as a scalar in samples per second. This is a read-only property

RF center frequency, specified in Hz as a scalar. The default is 2.4e9. This property is tunable.

RF center frequency, specified in Hz as a scalar. The default is 2.4e9. This property is tunable.

NCO correction frequency, specified in Hz as a scalar. The default is 0. This property is tunable.

NCO correction frequency, specified in Hz as a scalar. The default is 0. This property is tunable.

Indexs of channels to be enabled. Input should be a [1xN] vector with the indexes of channels to be enabled. Order is irrelevant

Hostname or IP address of remote libIIO device

If true, connects to libIIO device during simulation


Example Usage
%% Rx set up
rx = adi.ADRV9002.Rx('uri','ip:analog.local');
 
rx.CenterFrequencyChannel0 = 1e9;

rx.EnabledChannels = 1;
%% Run
for k=1:10
    valid = false;
    while ~valid
        [out, valid] = rx();
    end
end