sdrtx

Create transmitter System object for USRP® embedded series radio hardware

Description

example

tx = sdrtx(DeviceName) creates a transmitter System object™ with default properties that transmits data to the USRP®[1] embedded series radio hardware specified by DeviceName. The object transmits data over a gigabit Ethernet network connection.

When you call the transmitter System object, the object connects to the radio hardware. The object stays connected until you call the release function. For more information on how to use the object, see the documentation of the corresponding System object.

tx = sdrtx(DeviceName,Name,Value) specifies additional properties using one or more name-value pair arguments. Unspecified properties take default values.

Examples

collapse all

Make sure your radio hardware is configured for host-radio communication by following the steps in Guided Host-Radio Hardware Setup.

Create a transmitter System object for your radio hardware with the specified properties. Use a single channel.

tx = sdrtx('E3xx', ...
    'IPAddress','192.168.3.2', ...
    'CenterFrequency',2.2e9, ...
    'BasebandSampleRate',800e3, ...
    'ChannelMapping',1)
tx = 
  comm.SDRTxE3xx with properties:

   Main
                DeviceName: 'E3xx'
                 IPAddress: '192.168.3.2'
           CenterFrequency: 2.2000e+09
                      Gain: -10
            ChannelMapping: 1
        BasebandSampleRate: 800000
    ShowAdvancedProperties: false

  Show all properties

Create a DPSK modulator System object.

mod = comm.DPSKModulator('BitInput',true);

Use modulated random data as the data source and transmit the data with the radio hardware.

for counter = 1:20
   data = randi([0 1],30,1);
   modSignal = mod(data);
   tx(modSignal);
end
## Establishing connection to hardware. This process can take several seconds.

Input Arguments

collapse all

Name of USRP® embedded series radio hardware, specified as 'E3xx'. You can interface with any of these radio hardware devices:

  • USRP® E310

  • USRP® E312

Data Types: char | string

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'CenterFrequency',2.5e9

For a full list of property names and values, see the reference page of the corresponding transmitter System object tx.

Output Arguments

collapse all

Transmitter for the specified radio hardware, returned as a comm.SDRTxE3xx System object.

Introduced in R2016b


[1] USRP, USRP2, UHD, and Ettus Research are trademarks of National Instruments Corp.