Main Content

sdrtx

Create transmitter System object for Xilinx Zynq-based radio hardware

Add-On Required: This feature requires the SoC Blockset Support Package for AMD FPGA and SoC Devices add-on.

Description

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.

example

tx = sdrtx(DeviceName,Name,Value) specifies additional properties using one or more Name,Value arguments.

Examples

collapse all

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.

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 character vectors:

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

    • Analog Devices® RF SOM

    • Xilinx Zynq ZC706 Evaluation Kit with Analog Devices FMCOMMS2/3/4 RF card

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

    • Zynq UltraScale+™ MPSoC ZCU102 Evaluation Kit 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 Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: 'CenterFrequency',3.5e9,'Gain',-5 sets the transmitter center RF frequency to 3.5 GHz and gain to -5 dB.

For a full list of property names and values, see the properties of the returned 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:

Version History

Introduced in R2014b