(Removed) Receive data from USRP® E310 or USRP® E312 radio hardware
Communications Toolbox Support Package for USRP Embedded Series Radio / E310
The E310 Receiver block receives data from USRP® E310 or USRP® E312 radio hardware. This connection enables you to simulate and develop various software-defined radio applications.
The following diagram shows the conceptual overview of transmitting and receiving radio signals with this support package. Simulink® interacts with the E310 Receiver block to receive signals from the radio hardware.
To check connectivity between the E310 Receiver block and the radio hardware, and to synchronize radio settings between them, on the Main tab of the block, click Info.
The E310 Receiver block supports up to two channels to receive data from the USRP® E310 or USRP® E312 radio hardware. Use the Channel Mapping parameter to indicate whether to use a single channel or both channels. The block outputs a matrix signal, data, where each column corresponds to one channel of data of length data length. For each channel, you can set the gain independently, or you can apply the same setting to both channels. All other parameter values are applied to both channels.
You can use the ADI filter wizard to change the default filter design applied to the filter chain in the E310 Receiver block. To open the filter wizard, on the Advanced tab of the block, click Design custom filter. The wizard enables you to design a custom filter for the Analog Devices® AD9361 RF chip based on the Baseband sample rate (Hz) parameter. You can adjust and optimize the settings for calculating the analog filters, the interpolation and decimation filters, and the FIR coefficients. When you finish with the wizard, to apply the filter settings, click Apply on the block.
The ADI filter wizard requires the following MathWorks® products:
Signal Processing Toolbox™
DSP System Toolbox™
For instructions on operating the ADI filter wizard, visit the Analog Devices website at MATLAB Filter Design Wizard for AD9361.
For more information, see Baseband Sampling Rate and Filter Chains.
gain— External gain source
External gain source, specified as a scalar or 1-by-2 vector on the port. The valid gain range is –4 dB to 71 dB and depends on the center frequency. An incompatible gain and center frequency combination returns an error from the radio hardware.
Set the gain value based on the Channel Mapping configuration:
For a single channel, specify the gain as a scalar.
For two channels that use the same gain value, specify the gain as a scalar. The block applies the gain by scalar expansion.
For two channels that use different gain values, specify
the values as a 1-by-2 vector. The
Nth element of the vector is
applied to the
specified by Channel Mapping.
To enable this port, set Source of gain to
data— Output signal
Output signal received from the radio hardware, returned as a complex matrix. The number of columns in the matrix depends on the number of channels in use, as specified by the Channel Mapping parameter. Each column corresponds to a channel of complex data received on one channel.
This port supports complex values with the following data types:
16-bit signed integers — Complex values are the raw 16-bit I and Q samples from the board. The 12-bit value from the ADC of the AD9361 RF chip is sign-extended to 16 bits.
Single-precision floating point — Complex values are scaled to the range of [–0.0625, 0.0625]. The block derives this value from the sign-extended 16 bits received from the board.
Double-precision floating point — Complex values are scaled to the range of [–0.0625, 0.0625]. The block derives this value from the sign-extended 16 bits received from the board.
To specify the base type, use the Output data type parameter.
When the block is activated during simulation, host might not receive any data from the radio hardware. To determine whether data is valid, check the data length port and enable the lost samples port. The first valid data frame can contain transient values, resulting in packets containing undefined data.
Complex Number Support: Yes
data length— Length of received data
Actual length of the data received from the radio hardware, returned as a nonnegative integer. When this port contains a zero value, the received data is not valid. When this port contains a positive value, use the data length port and an enabled subsystem driven by the data length signal to qualify the execution of the model.
To check connectivity between the block and the radio hardware, and to synchronize radio settings between them, on the Main tab, click Info.
When you set block parameter values, the E310 Receiver block first checks that the values have the correct data types. If the values pass those checks, the values can still be out of range for the radio hardware. In that case, the radio hardware sets the actual value as close to the specified value as possible. When you next synchronize the block with the radio hardware by clicking Info, a dialog box displays the actual values.
If a parameter is listed as tunable, then you can change its value during simulation.
Enable quadrature tracking— Apply IQ imbalance compensation
When you select this parameter, the block applies IQ imbalance compensation.
Enable RF DC tracking— Apply RF DC blocking filter
When you select this parameter, the block applies an RF DC blocking filter.
Enable baseband DC tracking— Apply baseband DC blocking filter
When you select this parameter, the block applies a baseband DC blocking filter.
Show internal settings— Show advanced internal radio properties
When you select this parameter, the block displays advanced internal radio properties. Do not edit these settings.
Errors starting in R2020a
Starting in release R2019b, the support package uses Analog Devices industrial I/O (IIO) drivers and the corresponding libiio library for interfacing with Linux® IIO devices. This transition gives you access to more advanced device properties through additional objects and blocks.
The E310 Receiver block has been removed. Use the E3xx Receiver block instead.
For more information on how this transition affects your existing models, see Compatibility with Previous Releases.
 USRP, USRP2, UHD, and Ettus Research are trademarks of National Instruments Corp.