RF Budget Analyzer
Analyze gain, noise figure, IP2, and IP3 of cascaded RF elements and export toRF Blockset
Description
TheRF Budget Analyzerapp analyzes the gain, noise figure, and nonlinearity of proposed RF system architecture.
Using this app, you can:
Build a cascade of RF elements.
计算per-stage and cascade output power, gain, noise figure, SNR, and IP3 of the system.
Compute nonlinear effects such as output power, IP2, NF, and SNR using harmonic balance analysis.
Note
SNR calculation of an RF chain inRF Budget Analyzerapp uses 290K as a reference temperature.
Plot
rfbudget
results across bandwidths and over stages.Plot S-parameters of the RF System on a Smith chart and a polar plot.
Plot magnitude, phase and real, and imaginary parts of S-parameters of the RF System and over stages.
Export per-stage and cascade values to the MATLAB®workspace.
Export the system design to RF Blockset™ for simulation.
Note
If you use a stripline element in your system, then the app does not support exporting your system to RF Blockset.
Export the system design to the RF Blockset Testbench as a device under test (DUT) subsystem and verify the results using simulation.
Note
If you use an antenna element, the app does not support exporting to a testbench in the RF Blockset using theMeasurement Testbenchoption.
Export the system design to
rfsystem
system object.Visualize budget results and S-parameters over stages and frequencies.
Compare Friis and harmonic balance budget results.
More
Available Blocks
The app toolstrip contains these nonlinear elements that you can use to create an RF system:
Amplifier
Modulator
Demodulator
Generic
The app toolstrip contains these linear elements that you can use to create an RF system:
S-Parameters
Filter
Transmission Line
Series RLC
Shunt RLC
Attenuator
Transmitter Antenna
Receiver Antenna
Transmit-Receive Antenna
LC Ladder
Phase Shift
Available Templates
The app toolstrip contains these templates that you can use to design a transmitter or a receiver system:
Receiver
Transmitter
Open the RF Budget Analyzer App
MATLAB Toolstrip: On theAppstab, underSignal Processing and Communications, click the app icon.
MATLAB command prompt: Enter
rfBudgetAnalyzer
.
Examples
RF Transmitter System Analysis
Design and analyze an RF transmitter using theRF Budget Analyzerapp.
EnterrfBudgetAnalyzer
打开应用程序。
Use theTransmittertemplate to create a basic transmitter.
发射机模板显示如下。
InSystem Parameters, specify the RF transmitter requirements:
Input Frequency—
815
MHzAvailable Input Power—
0
dBmSignal Bandwidth—
100
MHz
Click theIFAmplifier
in the design canvas. Delete it using theDelete Elementbutton on the toolstrip.
Add aGenericelement in the place of theIFAmplifier
using the toolstrip. In theElement Parameterspane, specify:
Name—
IFFilter
Available Power Gain—
-3.6
dBSelectApply.
Click theModulatorelement. In theElement Parameterspane, specify:
Name—
Mixer
Available Power Gain—
-6.5
dBOIP3—
11.5
dBmLO Frequency—
4.97
GHzConverter Type—
Up
SelectApply.
Delete theS-Parameterselement namedBandpassFilter
. Add aGenericelement. In theElement Parameterspane, specify:
Name—
RFFilter1
Available Power Gain—
-1.4
dBSelectApply.
Select thePowerAmplifier
element and in theElement Parameterspane, specify:
Name—
PowerAmplifier1
Available Power Gain—
20
dBOIP3—
43
dBmSelectApply.
Add anotherAmplifierelement using the toolstrip. In theElement Parameterspane, specify:
Name—
PowerAmplifier2
Available Power Gain—
20
dBOIP3—
43
dBmSelectApply.
Add anotherGenericelement. In theElement Parameterspane, specify:
Name—
RFFilter2
Available Power Gain—
-1.4
dBSelectApply.
Save the system. The app saves the system in a MAT file.
Plot the output power of the transmitter using the3D Plotbutton. Select3D Plotand chooseOutput Power - Pout
.
使用传输天线射频发射机的设计
This example uses an RF transmitter design from theRF Transmitter System Analysisexample.
Follow the RF Transmitter System Analysis example to design an RF transmitter. Select the antenna element from theElementssection and add the element at end of this RF transmitter. In theElement Parameterspane, selectAntenna Designer
from theAntenna Sourcedrop-down list.
ClickCreate Antennain theElement Parameterspane.
TheAntenna Designerapp opens. ClickNewto explore the antenna library. This example uses adipoleFolded
antenna element with a center frequency of815
MHz. To do this, selectFolded
element from theAntenna Gallery, setDesign Frequencyto815
MHz, and clickAccept.
The updated antenna shows in the window.
ClickUpdate Elementto update theAntenna
element in theRF Budget Analyzerapp. ClickOKin the Confirm Update dialog box.
TheAntenna Designerapp window closes and theAntenna
element is updated in theRF Budget Analyzerapp. TheResultspane is automatically updated for Friis analysis withEIRP
andDirectivity
of theAntenna
element.
RF Receiver System Analysis
Design and analyze an RF receiver using theRF Budget Analyzerapp.
EnterrfBudgetAnalyzer
打开应用程序。
Use theReceivertemplate option to create a basic receiver.
The receiver template is displayed as follows:
InSystem Parameters, specify the RF receiver requirements:
Input Frequency—
5.745
MHzAvailable Input Power—
-65
dBmSignal Bandwidth—
100
MHz
ClickRFFilter
in the design canvas. ThisRFFilter
is anS-parameterselement. It accepts a Touchstone® file in the S2P file type. Update theElement parameterspane as follows:
Name:
BandpassFilter
S2P file:Choose an S2P file by clicking theBrowsebutton.
SelectApply.
Click theRFAmplifier
element. In theElement Parameterspane, specify the element requirements:
Name—
LNA1
Available Power Gain—
12
dBOIP3—
20
dBmSelectApply.
Add anotherAmplifierelement using the toolstrip. In theElement Parameterspane, specify the element requirements:
Name—
LNA2
Available Power Gain—
12
dBOIP3—
20
dBmSelectApply.
Add aGenericelement. In theElement Parameterspane, specify the element requirements:
Name—
IRFilter
Available Power Gain—
-4.05
dBSelectApply.
Click theDemodulator
element. In theElement Parameterspane, specify the element requirements:
Name—
Mixer
Available Power Gain—
-6.5
dBOIP3—
11.5
dBmLO Frequency—
4.93
GHzConverter Type—
Down
SelectApply.
Delete theIFFilter
,S-parameterselement. Add aGenericelement in its place. In theElement Parameterspane, specify the element requirements:
Name—
CSFilter
Available Power Gain—
-9.55
dBSelectApply.
Click theIFAmplifier
element. In theElement Parameterspane, specify the element requirements:
Name—
PowerAmp1
Available Power Gain—
16
dBOIP3—
26
dBmSelectApply.
Add two moreAmplifierelements. For each element, in theElement Parameterspanes specify the element requirements:
Name—
PowerAmp2
|PowerAmp3
Available Power Gain—
16
dB |20
dBOIP3—
26
dBm |33
dBmSelectApply.
Save the system. The app saves the system in a MAT file.
Plot the output OIP3 of the receiver using the3D Plotbutton. Select the3D Plotbutton and chooseOutput Third-Order Intercept Point - OIP3
.
Compare Friis and Harmonic Balance Solver
Create an amplifier with a gain of 4 dB.
a = amplifier('Gain',4);
Create a modulator with an OIP3 of 13 dBm.
m = modulator('OIP3',13);
Create annport
usingpassive.s2p
.
n = nport('passive.s2p');
Create an RF element with a gain of 10 dB.
r = rfelement('Gain',10);
计算rfbudget
of a series of RF elements at an input frequency of 2.1 GHz, an available input power of -30 dBm, and a bandwidth of 10 MHz.
b = rfbudget([a m r n],2.1e9,-30,10e6);
Run this command in the command window, to open the system inRF Budget Analyzerapp.
show(b)
SetOIP2value ofAmplifier
to60
dBm usingElements Parameterspane and selectApply. InSystem Parameterssection, set theAvailable Input Powerto50
dBm and run harmonic balance analysis usingHB-Analyzebutton.
The results are displayed as shown below.
SelectAuto-Analyzecheckbox to automatically recompute the harmonic balance analysis calculations.
SetOIP2value ofRFelement
as50
dBm usingElements Parameterspane and selectApply.
SelectCompare Viewcheckbox in theResultspane to compare the calculated Friis and harmonic balance solver results. You can useSelect Resultsdrop-down from theResultspane to filter the results and to compare between Friis and harmonic balance solver.
Design Input Matching Network Using Transmission Line Element
Design an input matching network for a two-stage amplifier using theTransmission Lineelement in theRF Budget Analyzerapp.
EnterrfBudgetAnalyzer
打开应用程序。
InSystem Parameters, specify the requirements:
Input Frequency—
2.45
GHzAvailable Input Power—
0
dBmSignal Bandwidth—
2
GHz
Add twoTransmission Lineelements. In theElement Parameterspane, specify:
Name—
Microstrip1
|Microstrip2
Type—
microstrip
|microstrip
Width—
0.0034173
|0.0034173
metersHeight—
0.001524
|0.001524
metersThickness—
3.5e-06
|3.5e-06
metersEpsilonR—
3.48
|3.48
LossTangent—
0.0037
|0.0037
metersSigmaCond—
Inf
|Inf
S/mLineLength—
0.0089
|0.0147
metersStubMode—
Shunt
|NotAStub
Termination—
Open
SelectApply.
Add twoS-Parameterselements. In theElement Parameterspane, specify:
Name—
Sparams1
|Sparams2
Load the Touchstone® file (f551432p.s2p
) to theS-Parameterselements provided in this example and selectApply.
Plot the input reflection coefficient of the system using the3D Plotbutton. Select the3D Plotbutton, chooseS-Parameters
and selectS11
.
Plot S-Parameters, Output Power, and Transducer Gain of RF System
Design an RF system and plot S-parameters, output power, and transducer gain usingRF Budget Analyzerapp.
EnterrfBudgetAnalyzer
打开应用程序。
InSystem Parameters, specify the requirements:
Input Frequency—
2.1
GHzAvailable Input Power—
-30
dBmSignal Bandwidth—
45
MHz
Add aS-Parameterselement. In theElement Parameters, specify:
Name—
RFBandpassFilter
Load the Touchstone® file (RFBudget_RF.s2p
) to theS-Parameterselement provided in this example and selectApply.
Add anAmplifierelement. In theElement Parameters, specify:
Name—
RFAmplifier
Available Power Gain—
11.53
dBNF—
1.53
dBOIP3—
35
dBmSelectApply.
Add theDemodulatorelement. In theElement Parameters, specify:
Name—
Demodulator
Available Power Gain—
-6
dBNF —
4
dBOIP3—
50
dBmLO Frequency—
2.03
GHzConverter Type—
Down
SelectApply.
Add anotherS-Parameterselement. In theElement Parameters, specify:
Name—
IFBandpassFilter
Load the Touchstone file (RFBudget_IF.s2p
) to theS-Parameterselement provided in this example and selectApply.
Add anotherAmplifierelement. In theElement Parameters, specify:
Name—
IFAmplifier
Available Power Gain—
30
dBNF—
8
dBOIP3—
37
dBmSelectApply.
Save the system. The app saves the system in a MAT file.
SelectS-Parameters Plotbutton. This allows you to plot Smith® chart, polar plot, magnitude, phase and real, and imaginary parts of S-parameters of the RF System and over stages.
Set thePlot Bandwidthto75
andResolutionto250
underPlotssection.
The S-parameters data is displayed as follows.
SelectPhase (deg)
from the drop-down menu of XY Plot inS-Parameterspane to plot the phase of the S21.
The phase plot is displayed as shown.
Plot the output power of the RF system using the2D Plotbutton. Select2D Plotbutton and chooseOutput Power - Pout.
2-D output power is displayed.
Plot the transducer gain of the RF system using the2D Plotbutton. Select2D Plotbutton and chooseTransducer Gain - GainT.
Perform HB Analysis on RF Receiver Designed Usingrfsystem
Design an RF receiver using therfsystem
system object. View the object in the theRF Budget Analyzerapp to perform harmonic balance (HB) analysis.
Create fifth- and seventh-order bandpass RF filters.
f1 = rffilter('ResponseType','Bandpass','FilterOrder',5,...'PassbandFrequency',[4.85 5.15]*1e9); f2 = rffilter('ResponseType','Bandpass','FilterOrder'7...'PassbandFrequency',[10 130]*1e6);
Create two amplifier objects with3
dB and5
dB gain, respectively.
a1 = amplifier('Gain',3,'NF',1.53,'OIP3',35); a2 = amplifier('Gain',5,'NF',8,'OIP3',37);
Create a modulator with a local frequency of4.93
GHz.
d = modulator('Gain',0,'NF',4,'OIP3',50,'LO',4.93e9,...'ConverterType','Down');
Design an RF receiver with the budget elements at an input frequency of5
GHz, an available input power of –30
dBm, and a bandwidth of10
MHz.
rfb = rfbudget([f1 a1 d f2 a2],5e9,-30,10e6);
Create an RF system for the RF receiver using therfbudget
object.
rfs = rfsystem(rfb);
Open an RF Blockset model of the designed RF system using theopen_system
object function.
open_system(rfs)
Type rfBudgetAnalyzer(rfs) command at the MATLAB® command line to open this RF system in theRF Budget Analyzerapp.
To conduct HB analysis in the app, click theHB-Analyzebutton.
Related Examples
Programmatic Use
rfBudgetAnalyzer
rfBudgetAnalyzer
opens theRF Budget Analyzerapp to analyze the stage-wise and total gain, noise figure, and nonlinearity (IP3) of an RF system.
rfBudgetAnalyzer(rfbmat)
rfBudgetAnalyzer(rfbmat)
opens an RF system saved using theRF Budget Analyzerapp.rfbmat
is a MAT file.
rfBudgetAnalyzer(rfb)
rfBudgetAnalyzer(rfb)
opens an RF system saved using therfbudget
objectrfb
in theRF Budget Analyzerapp.
rfBudgetAnalyzer(rfs)
rfBudgetAnalyzer(rfs)
opens an RF system saved using therfsystem
system objectrfs
in theRF Budget Analyzerapp.
Tips
TheRF Budget Analyzerapp accepts
0
Hz asInput Frequencyfor a system. You can set theInput Frequencyin theSystem Parameterssection.TheRF Budget Analyzerapp does not accept
0
Hz asLO Frequency. This is applicable to Modulator and Demodulator elements.The output frequencies from theRF Budget Analyzerapp are always positive.
The Filter element allows you to use only the
'Transfer function'
implementation when you set theFilter Typeto'InverseChebyshev'
in theElement Parameterspane.To design an antenna element using theRF Budget Analyzerapp, in the Antenna Element pane, setAntenna Sourceto
Isotropic radiator
.You can also design an antenna element using theAntenna Designerapp or an antenna object. To use theAntenna Designerapp or the antenna object, you need Antenna Toolbox™ license.Antenna elements designed using a default antenna object require larger memory. To speed up the simulation, design your antenna element at a high frequency,
2
GHz or more.
References
[1] Pozar, David M.Microwave Engineering. 4th ed. Hoboken, NJ: Wiley, 2012.
版本;n 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)