You can download any signal waveform to the hardware and transmit it repeatedly over the air using a transmitter System object™. This feature enables you to use the transmitter system object, and the hardware as an RF signal generator. You can create any arbitrary waveform at the baseband in MATLAB® and transmit it repeatedly from the hardware. You are not limited by the Ethernet link or the processing speed of the host computer for signal transmission over the air.
Use this feature to:
Transmit signals such as reference signals and radio beacons.
Provide waveforms that are continuously transmitted and do not rely on the host for further signal generation.
Transmit a fixed waveform at a specific rate until you explicitly stop it.
Repeatedly transmit a signal from the hardware using a targeted bitstream.
To call the repeated waveform transmitter, use the
function of the transmitter System
When you use
transmitRepeat in single channel mode, the number
of samples must be even.
Perform these steps to send a complex tone of 100 kHz at a baseband sample rate of 2 MHz.
Generate a waveform.
fs = 2e6; sw = dsp.SineWave; sw.Amplitude = 0.5; sw.Frequency = 100e3; sw.ComplexOutput = true; sw.SampleRate = fs; sw.SamplesPerFrame = 20000; txWaveform = sw();
Create a transmitter System object for the USRP® E310 embedded series radio and set desired radio settings.
tx = sdrtx('E310'); tx.CenterFrequency = 2.415e9; tx.BasebandSampleRate = fs; tx.Gain = 0;
Send waveform to the radio and repeatedly transmit it.
Stop transmitting and release object.
To transmit and receive waveform data using a single device, use the
transmitRepeat function. Make sure the device is powered on,
configured correctly for use with the Communications
Toolbox™ Support Package for USRP® Embedded Series Radio, and able to send and receive signals.
The general workflow for this feature is:
Generate data for transmitting (as shown in the previous section).
Create a receiver design.
Create a transmitter System object.
The baseband sample rate of the transmitter System object must be equal with the baseband sample rate of the receiver System object or block from the receiver design.
transmitRepeat function of the transmitter
Set up antennas or loopback.
Call the receiver you created in Step 2.
To see this feature applied, see the Repeated Transmission of a QPSK Waveform Using USRP® E310 example. You can examine the example code for ideas on how to implement transmit and receive on a single board.
If you have trouble transmitting your waveform, consult this table for a possible solution.
|Message or Condition||Probable Cause|
||You tried to change a radio setting, or attempted to send a different
waveform, or called the |
Tunable properties have no effect during a repeated waveform transmission.
You tried to adjust a tunable property. You cannot do that during the repeated waveform transmission.
The requested number of samples is greater than what is available in the hardware buffer. Either reduce the length of the waveform or the number of channels.
The radio cannot support repeated waveform transmission with the current values you have set. Further information on available samples and how the selected values exceed this limit appear below the error message. For example:
Samples available with 1 channel = 8388608. Requested number of samples = 16000000 (Number of samples in waveform x Number of channels = 16000000 x 1).
 USRP, USRP2, UHD, and Ettus Research are trademarks of National Instruments Corp.