transmit
Transmit waveform using baseband transmitter or transceiver
Description
Examples
Configure Baseband Transmitter and Transmit Waveform
Create a baseband transmitter object, specifying a radio setup configuration previously saved in the Radio Setup wizard.
bbtx = basebandTransmitter("MyRadio")
bbtx = basebandTransmitter with properties: RadioGain: 10 CenterFrequency: 2.4000e+09 SampleRate: 250000000 Antennas: "RF0:TX/RX"
Set the baseband sample rate and center frequency.
bbtx.SampleRate = 122.88e6; bbtx.CenterFrequency = 2.2e9;
Generate random transmit waveform.
txWaveform = complex(randn(1000,1),randn(1000,1));
Transmit the generated waveform continuously with the radio associated with the baseband transmitter object using the default antenna.
transmit(bbtx,txWaveform,"continuous");
Stop the continuous transmission after 5 seconds.
pause(5); stopTransmission(bbtx);
Configure Baseband Transceiver to Transmit and Capture Data
Create a baseband transceiver object, specifying a radio setup configuration previously saved in the Radio Setup wizard.
bbtrx = basebandTransceiver("MyRadio")
bbtrx = basebandTransceiver with properties: TransmitRadioGain: 10 TransmitCenterFrequency: 2.4000e+09 TransmitAntennas: "RF0:TX/RX" CaptureRadioGain: 10 CaptureCenterFrequency: 2.4000e+09 CaptureAntennas: "RF0:RX2" CaptureDataType: "int16" DroppedSamplesAction: "error" SampleRate: 250000000
Set the baseband sample rate.
bbtrx.SampleRate = 122.88e6;
Set the transmit and capture center frequencies.
bbtrx.TransmitCenterFrequency = 2.2e9; bbtrx.CaptureCenterFrequency = 2.2e9;
Generate random transmit waveform.
txWaveform = complex(randn(1000,1),randn(1000,1));
Transmit the generated waveform continuously with the radio associated with the baseband transceiver object using the default transmit antenna.
transmit(bbtrx,txWaveform,"continuous");
Capture IQ data with the radio associated with the baseband transceiver object using the default capture antenna.
[data,~] = capture(bbtrx,milliseconds(3));
Stop the continuous transmission after data capture is complete.
stopTransmission(bbtrx);
Input Arguments
bba
— Baseband application
basebandTransmitter
object | basebandTransceiver
object
Baseband application, specified as a basebandTransmitter
object or basebandTransceiver
object.
Note
The first object function call in which you specify this object as an input requires a few extra seconds to load the application onto the hardware.
waveform
— IQ waveform to transmit
complex-valued column vector | complex-valued matrix
IQ waveform to transmit, specified as one of these options.
Complex-valued column vector with even number of rows — Use this option to send an IQ waveform on a single transmit antenna.
Complex-valued matrix with even number of rows — Use this option to send IQ waveforms on multiple transmit antennas. This option applies only when
bba
is a baseband transmitter. The number of antennas specified by theAntennas
property of thebba
input must match the number of matrix columns.
The waveform length across all applicable antennas must be relative to the onboard radio memory buffer size. The buffer has a capacity of 2 GB, which amounts to a total of 229 data samples.
Baseband Transceiver
Transmit and capture data samples on the baseband transceiver are buffered in the
onboard radio memory. Therefore, if the bba
input is a baseband
transceiver, you must also take into account the data capture length that you specify
when calling the capture
object function with the bba
input.
If you specify a waveform with a single
or
double
data type, you must scale the transmit data sample values to
the range [–1, 1].
Data Types: int16
| single
| double
Complex Number Support: Yes
mode
— Transmission mode
"continuous"
| "once"
Transmission mode, specified as one of these options.
"continuous"
— The function transmits the waveformwaveform
continuously to the air by repeating the data samples until you callstopTransmission(bba)
."once"
— The function transmits the waveformwaveform
once in a single-shot transmission.
Data Types: string
Version History
Apri esempio
Si dispone di una versione modificata di questo esempio. Desideri aprire questo esempio con le tue modifiche?
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
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)