stopTransmission
Syntax
Description
Examples
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);
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 a 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
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.
Version History
Introduced in R2022a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)