(Removed) Send data to USRP® E310 or USRP® E312 radio hardware
object sends data to
E310 or USRP® E312 radio hardware. This connection enables you to simulate and develop various software-defined
The following diagram shows the conceptual overview of transmitting and receiving radio
signals with this support package. MATLAB® interacts with the
object to send signals to the radio hardware.
To send data to the radio hardware:
comm.SDRTxE310 object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects? (MATLAB).
comm.SDRTxE310 transmitter System
object supports up to two channels to send data to the
USRP® E310 or USRP® E312 radio hardware. Use the
ChannelMapping property to indicate whether to
use a single channel or both channels. The object receives a matrix signal, where each
column corresponds to one fixed-length channel of data. For each channel, you can set the
Gain property independently, or you can apply the same setting to
both channels. All other property values are applied to both channels.
creates a transmitter System
object with default properties that you can use to send data to the
USRP® E310 or USRP® E312 radio hardware.
tx = sdrtx(
creates the object with properties set by using one or more name-value pair arguments. The
property name must be placed inside single quotes (' '), followed by the specified value.
Unspecified properties take default values.
tx = sdrtx(
tx = sdrtx('E310', ... 'IPAddress','192.168.30.2', ... 'CenterFrequency',2.4e9, ... 'BasebandSampleRate',1e6, ... 'ChannelMapping',1);
Unless otherwise indicated, properties are nontunable, 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 (MATLAB).
ShowAdvancedProperties— Option for advanced properties
Option for advanced properties, specified as
can set the following advanced properties:
tx( sends a signal to the radio
hardware associated with the specified
tx transmitter System
To use an object function, specify the
object as the first input argument. For
example, to release system resources of a System
Configure the radio hardware with an IP address of 192.168.3.2. Set the radio to transmit at 2.4 GHz with a baseband rate of 1 MHz.
tx = sdrtx('E310', ... 'IPAddress','192.168.3.2', ... 'CenterFrequency',2.4e9, ... 'BasebandSampleRate',1e6, ... 'ChannelMapping',1);
Use a DPSK modulator as the data source to transmit the data with the radio hardware.
Mod = comm.DPSKModulator('BitInput',true); for counter = 1:20 data = randi([0 1], 30, 1); modSignal = Mod(data); tx(modSignal); end
comm.SDRTxE310has been removed
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.
objecthas been removed. Use the
For more information on how this transition affects your existing scripts, see Compatibility with Previous Releases.
 USRP, USRP2, UHD, and Ettus Research are trademarks of National Instruments Corp.