analyze gain, noise figure, ip2, and ip3 of cascaded rf elements and export to rf blockset -凯发k8网页登录
analyze gain, noise figure, ip2, and ip3 of cascaded rf elements and export to rf blockset
description
the rf budget analyzer app analyzes the gain, noise figure, and nonlinearity of proposed rf system architecture.
using this app, you can:
build a cascade of rf elements.
calculate the 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 in rf budget analyzer app uses 290k as a reference temperature.
plot 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 the measurement testbench option.
export the system design to system object.
visualize budget results, s-parameters over stages and frequencies.
visualize the amplifier power characteristics (since r2023a).
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
mixer imt
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
mutual inductor
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 the apps tab, under signal processing and communications, click the app icon.
matlab command prompt: enter
rfbudgetanalyzer
.
examples
rf transmitter system analysis
design and analyze an rf transmitter using the rf budget analyzer app.
enter rfbudgetanalyzer
to open the app.
use the transmitter template to create a basic transmitter.
the transmitter template is displayed as follows.
in system parameters, specify the rf transmitter requirements:
input frequency —
815
mhzavailable input power —
0
dbmsignal bandwidth —
100
mhz
click the ifamplifier
in the design canvas and delete the element using the delete element button on the toolstrip.
add a generic element in the place of the ifamplifier
using the toolstrip. in the element parameters pane, specify:
name —
iffilter
available power gain — –
3.6
dbselect apply.
click the modulator element. in the element parameters pane, specify:
name —
mixer
available power gain — –
6.5
dboip3 —
11.5
dbmlo frequency —
4.97
ghzconverter type —
up
select apply.
delete the s-parameters element named bandpassfilter
. add a generic element. in the element parameters pane, specify:
name —
rffilter1
available power gain — –
1.4
dbselect apply.
select the poweramplifier
element and in the element parameters pane, specify:
name —
poweramplifier1
available power gain —
20
dboip3 —
43
dbmselect apply.
add another amplifier element using the toolstrip. in the element parameters pane, specify:
name —
poweramplifier2
available power gain —
20
dboip3 —
43
dbmselect apply.
add another generic element. in the element parameters pane, specify:
name —
rffilter2
available power gain — –
1.4
dbselect apply.
save the system. the app saves the system in a mat file.
plot the output power of the transmitter using the 3d plot button. select 3d plot and choose output power - pout
.
select the poweramplifer1
element and from the element parameters pane, and then click the plot power characteristics button to plot amplifier power characteristics of the poweramplifer1
element. alternatively, to plot the amplifier power characteristics of the poweramplifer1
element, select the poweramplifer1
element and using the 2-d plot button, choose plot power characteristics
.(since 2023a)
use transmit antenna in your rf transmitter design
this example uses:
this example uses an rf transmitter design from the rf transmitter system analysis example.
follow the rf transmitter system analysis example to design an rf transmitter. select the antenna element from the elements section and add the element at end of this rf transmitter. in the element parameters pane, select antenna designer
from the antenna source drop-down list.
click create antenna in the element parameters pane.
the antenna designer app opens. click new to explore the antenna library. this example uses a dipolefolded
antenna element with a center frequency of 815
mhz. to do this, select folded
element from the antenna gallery, set design frequency to 815
mhz, and click accept.
the updated antenna shows in the window.
click update element to update the antenna
element in the rf budget analyzer app. click ok in the confirm update dialog box.
the antenna designer app window closes and the antenna
element is updated in the rf budget analyzer app. the results pane is automatically updated for friis analysis with eirp
and directivity
of the antenna
element.
rf receiver system analysis
design and analyze an rf receiver using the rf budget analyzer app.
enter rfbudgetanalyzer
to open the app.
use the receiver template option to create a basic receiver.
the receiver template is displayed as follows:
in system parameters, specify the rf receiver requirements:
input frequency —
5.745
mhzavailable input power — –
65
dbmsignal bandwidth —
100
mhz
click rffilter
in the design canvas. this rffilter
is an s-parameters element. it accepts a touchstone® file in the s2p file type. update the element parameters pane as follows:
name:
bandpassfilter
s2p file: choose an s2p file by clicking the browse button.
select apply.
click the rfamplifier
element. in the element parameters pane, specify the element requirements:
name —
lna1
available power gain —
12
dboip3 —
20
dbmselect apply.
add another amplifier element using the toolstrip. in the element parameters pane, specify the element requirements:
name —
lna2
available power gain —
12
dboip3 —
20
dbmselect apply.
add a generic element. in the element parameters pane, specify the element requirements:
name —
irfilter
available power gain — –
4.05
dbselect apply.
click the demodulator
element. in the element parameters pane, specify the element requirements:
name —
mixer
available power gain — –
6.5
dboip3 —
11.5
dbmlo frequency —
4.93
ghzconverter type —
down
select apply.
delete the iffilter
, s-parameters element. add a generic element in its place. in the element parameters pane, specify the element requirements:
name —
csfilter
available power gain — –
9.55
dbselect apply.
click the ifamplifier
element. in the element parameters pane, specify the element requirements:
name —
poweramp1
available power gain —
16
dboip3 —
26
dbmselect apply.
add two more amplifier elements. for each element, in the element parameters panes specify the element requirements:
name —
poweramp2
|poweramp3
available power gain —
16
db |20
dboip3 —
26
dbm |33
dbmselect apply.
save the system. the app saves the system in a mat file.
plot the output oip3 of the receiver using the 3d plot button. select the 3d plot button and choose output 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 an nport
using passive.s2p
.
n = nport('passive.s2p');
create an rf element with a gain of 10 db.
r = rfelement('gain',10);
calculate the 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 in rf budget analyzer app.
show(b)
set oip2 value of amplifier
to 60
dbm using elements parameters pane and select apply. in system parameters section, set the available input power to 50
dbm and run harmonic balance analysis using hb-analyze button.
the results are displayed as shown below.
select auto-analyze checkbox to automatically recompute the harmonic balance analysis calculations.
set oip2 value of rfelement
as 50
dbm using elements parameters pane and select apply.
select compare view checkbox in the results pane to compare the calculated friis and harmonic balance solver results. you can use select results drop-down from the results pane 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 the transmission line element in the rf budget analyzer app.
enter rfbudgetanalyzer
to open the app.
in system parameters, specify the requirements:
input frequency —
2.45
ghzavailable input power —
0
dbmsignal bandwidth —
2
ghz
add two transmission line elements. in the element parameters pane, 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
select apply.
add two s-parameters elements. in the element parameters pane, specify:
name —
sparams1
|sparams2
load the touchstone® file (f551432p.s2p
) to the s-parameters elements provided in this example and select apply.
plot the input reflection coefficient of the system using the 3d plot button. select the 3d plot button, choose s-parameters
and select s11
.
plot s-parameters, output power, and transducer gain of rf system
design an rf system and plot s-parameters, output power, and transducer gain using rf budget analyzer app.
enter rfbudgetanalyzer
to open the app.
in system parameters, specify the requirements:
input frequency —
2.1
ghzavailable input power —
-30
dbmsignal bandwidth —
45
mhz
add a s-parameters element. in the element parameters, specify:
name —
rfbandpassfilter
load the touchstone® file (rfbudget_rf.s2p
) to the s-parameters element provided in this example and select apply.
add an amplifier element. in the element parameters, specify:
name —
rfamplifier
available power gain —
11.53
dbnf —
1.53
dboip3 —
35
dbmselect apply.
add the demodulator element. in the element parameters, specify:
name —
demodulator
available power gain —
-6
dbnf —
4
dboip3 —
50
dbmlo frequency —
2.03
ghzconverter type —
down
select apply.
add another s-parameters element. in the element parameters, specify:
name —
ifbandpassfilter
load the touchstone file (rfbudget_if.s2p
) to the s-parameters element provided in this example and select apply.
add another amplifier element. in the element parameters, specify:
name —
ifamplifier
available power gain —
30
dbnf —
8
dboip3 —
37
dbmselect apply.
save the system. the app saves the system in a mat file.
select s-parameters plot button. 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 the plot bandwidth to 75
and resolution to 250
under plots section.
the s-parameters data is displayed as follows.
select phase (deg)
from the drop-down menu of xy plot in s-parameters pane to plot the phase of the s21.
the phase plot is displayed as shown.
plot the output power of the rf system using the 2d plot button. select 2d plot button and choose output power - pout
.
2-d output power is displayed.
plot the transducer gain of the rf system using the 2d plot button. select 2d plot button and choose transducer gain - gaint
.
perform hb analysis on rf receiver designed using rfsystem
this example uses:
design an rf receiver using the rfsystem
system object. view the object in the the rf budget analyzer app 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 with 3
db and 5
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 of 4.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 of 5
ghz, an available input power of – 30
dbm, and a bandwidth of 10
mhz.
rfb = rfbudget([f1 a1 d f2 a2],5e9,-30,10e6);
create an rf system for the rf receiver using the rfbudget
object.
rfs = rfsystem(rfb);
open an rf blockset model of the designed rf system using the open_system
object function.
open_system(rfs)
type rfbudgetanalyzer(rfs) command at the matlab® command line to open this rf system in the rf budget analyzer app.
to conduct hb analysis in the app, click the hb-analyze button.
related examples
programmatic use
rfbudgetanalyzer
rfbudgetanalyzer
opens the rf budget analyzer app
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 the
rf budget analyzer app. rfbmat
is a mat
file.
rfbudgetanalyzer(rfb)
rfbudgetanalyzer(rfb)
opens an rf system saved using the
object rfb
in the rf budget analyzer app.
rfbudgetanalyzer(rfs)
rfbudgetanalyzer(rfs)
opens an rf system saved using the
system object rfs
in the rf budget analyzer
app.
tips
the rf budget analyzer app accepts
0
hz as input frequency for a system. you can set the input frequency in the system parameters section.the rf budget analyzer app does not accept
0
hz as lo frequency. this is applicable to modulator and demodulator elements.the output frequencies from the rf budget analyzer app are always positive.
the filter element allows you to use only the
'transfer function'
implementation when you set the filter type to'inversechebyshev'
in the element parameters pane.to design an antenna element using the rf budget analyzer app, in the antenna element pane, set antenna source to
isotropic radiator
.you can also design an antenna element using the antenna designer app or an antenna object. to use the antenna designer app 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.
version history
introduced in r2016ar2023a: mutual inductor, lumped transmission line, and amplifier power characteristics
the rf budget analyzer app now supports:
visualizing the amplifier power characteristics of an element.
adding and elements to the rf chain.
r2022b: model stripline element and use network parameter object to model s-parameter
use the rf budget analyzer app to:
model a stripline element to your rf system by selecting transmission line from the elements tab and setting type to
stripline
.model an s-parameters element with a network parameter object created at the matlab command line. to design the s-parameter element, first select s-parameters from the elements tab, and then set data source to
object
.
r2022a: model imt mixer and transmit-receive elements and model amplifier element using network parameter object
use the rf budget analyzer app to:
model a imt mixer by selecting mixer imt element from the element pane .
model an antenna in transmit-receive configuration by selecting txrxantenna element from the element pane.
model an amplifier element with a network parameter object created at the matlab command line. to design an amplifier element, first select amplifier from the elements tab and set input method to
network parameters
. then, set data source toobject
.
r2022a: export rf system to rfsystem
object
use the rf budget analyzer app to export your rf system to
rfsystem
object. to export, select export,
and click export to rfsystem.
see also
apps
topics
- (rf blockset)
打开示例
您曾对此示例进行过修改。是否要打开带有您的编辑的示例?
matlab 命令
您点击的链接对应于以下 matlab 命令:
请在 matlab 命令行窗口中直接输入以执行命令。web 浏览器不支持 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
- (español)
- (english)
- (english)
europe
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
asia pacific
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)