Download waveform signal to radio and repeatedly transmit it over the air





transmitRepeat(tx,wave) downloads the waveform signal wave to the radio hardware associated by the transmitter System object™, tx, and transmits it repeatedly over the air. The waveform signal is downloaded into the radio hardware memory and transmitted over the air repeatedly, without gaps, until the transmitter is released by calling release(tx).


collapse all

Generate a waveform signal.

 fs = 2e6;
 sw = dsp.SineWave;
 sw.Amplitude = 0.5;
 sw.Frequency = 100e3;
 sw.ComplexOutput = true;
 sw.SampleRate = fs;
 sw.SamplesPerFrame = 5000;
 txWaveform = sw();  

Download the waveform signal to the radio and repeatedly transmit it.

 tx = sdrtx('E310');
 tx.CenterFrequency = 2.415e9;
 tx.BasebandSampleRate = fs;
 tx.Gain = -5;

Stop repeated transmission by releasing the transmitter.


Input Arguments

collapse all

Transmitter System object, specified as a comm.SDRTxE310 object. To create this object, use the sdrtx function.

Waveform signal sent to the radio hardware, specified as a complex matrix. The number of columns in the matrix depends on the number of channels in use, as specified by the ChannelMapping property of tx. Each column corresponds to a channel of complex data transmitted on one channel. For each channel, the minimum number of data samples is 4096. When only one channel is in use, the maximum number of data samples is 16 million, and the number of samples must be even. When both channels are in use, the maximum number of data samples is 8 million for each channel.

The complex data type of the waveform signal must be one of these data types:

  • 16-bit signed integers — Since the AD9361 RF chip has a 12-bit DAC, only the 12 most significant bits of the I and Q samples are used.

  • Single-precision floating point — Complex values are scaled to the range of [–1, 1].

  • Double-precision floating point — Complex values are scaled to the range of [–1, 1].

Data Types: int16 | single | double
Complex Number Support: Yes

See Also

System Objects



Introduced in R2016b