transmitRepeat
Download waveform signal to radio and repeatedly transmit it over the air
Syntax
Description
transmitRepeat(
downloads the waveform signal tx
,wave
)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
Continuously Transmit 100 kHz Complex Tone
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 your radio hardware with specific properties.
tx = sdrtx('E3xx');
tx.CenterFrequency = 2.415e9;
tx.BasebandSampleRate = 2e6;
tx.Gain = -5;
Generate a waveform for transmission.
sw = dsp.SineWave; sw.Amplitude = 0.5; sw.Frequency = 100e3; sw.ComplexOutput = true; sw.SampleRate = tx.BasebandSampleRate; sw.SamplesPerFrame = 20000; txWaveform = sw();
Download the generated waveform to the radio and repeatedly transmit it over the air.
transmitRepeat(tx,txWaveform)
## Establishing connection to hardware. This process can take several seconds. ## Waveform transmission has started successfully and will repeat indefinitely. ## Call the release method to stop the transmission.
Stop repeated transmission by releasing the transmitter.
release(tx);
Input Arguments
tx
— Transmitter
comm.SDRTxE3xx
System object
Transmitter, specified as a comm.SDRTxE3xx
System object. To create this object, use the sdrtx
function.
wave
— Waveform signal
complex matrix
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
Version History
Introduced in R2016b
Beispiel öffnen
Sie haben eine geänderte Version dieses Beispiels. Möchten Sie dieses Beispiel mit Ihren Änderungen öffnen?
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)