transmitRepeat

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

Description

example

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).

Examples

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 = 20000;
 txWaveform = sw();  

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

 tx = sdrtx('E3xx');
 tx.CenterFrequency = 2.415e9;
 tx.BasebandSampleRate = fs;
 tx.Gain = -5;
 transmitRepeat(tx,txWaveform);

Stop repeated transmission by releasing the transmitter.

 release(tx);

Input Arguments

collapse all

Transmitter, specified as one of these System objects:

To create a transmitter System object 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 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]. Since the AD9361/AD9364 RF chip has a 12-bit DAC, numbers of magnitude less than 0.0625 are lost.

  • Double-precision floating point — Complex values are scaled to the range of [–1, 1]. Since the AD9361/AD9364 RF chip has a 12-bit DAC, numbers of magnitude less than 0.0625 are lost.

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

Introduced in R2016b