Main Content

sdrtx

Create transmitter System object for Xilinx Zynq-based radio hardware

Description

example

tx = sdrtx(DeviceName) creates a transmitter System object™ with default properties that transmits data to the 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 the AD936x-based Zynq radio hardware with the specified properties. Use a single channel.

tx = sdrtx('AD936x', ...
    'IPAddress','192.168.3.2', ...
    'CenterFrequency',2.2e9, ...
    'BasebandSampleRate',800e3, ...
    'ChannelMapping',1);

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.

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 the FMCOMMS5 radio hardware with the specified properties. Use two channels.

tx = sdrtx('FMCOMMS5', ...
    'IPAddress','192.168.3.2', ...
    'CenterFrequency',2.4e9, ...
    'BasebandSampleRate',1e6, ...
    'ChannelMapping',[1 2])
tx = 
  comm.SDRTxFMCOMMS5 with properties:

   Main
                DeviceName: 'FMCOMMS5'
                 IPAddress: '192.168.3.2'
           CenterFrequency: 2.4000e+09
                      Gain: -10
            ChannelMapping: [1 2]
        BasebandSampleRate: 1000000
    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. Because two channels are in use, use two instances of the modulated data to form a two-column matrix.

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

Input Arguments

collapse all

Name of Xilinx Zynq-based radio hardware, specified as one of the these character vectors:

  • 'AD936x' — Use this option to interface with any of the following radio hardware devices:

    • ADI RF SOM

    • Xilinx ZC706 with Analog Devices® FMCOMMS2/3/4 RF card

    • ZedBoard™ with Analog Devices FMCOMMS2/3/4 RF card

    • Xilinx ZCU102 with Analog Devices FMCOMMS2/3/4 RF card

  • 'FMCOMMS5' — Use this option to interface with a Xilinx ZC706 radio hardware with Analog Devices FMCOMMS5 RF card.

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 Xilinx Zynq-based radio System object. For more information on how to use the object, see the corresponding documentation:

Introduced in R2014b