Main Content

exportTestbench

Create measurement testbench from RF budget object

Description

example

exportTestbench(rfobj) creates an RF Blockset™ model from the RF budget object, and opens a measurement testbench system.

Note

This function requires DSP System Toolbox™.

sys = exportTestbench(rfobj) creates an RF Blockset model, and returns the measurement testbench system.

Examples

expand all

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 RF element with a gain of 10 dB.

r = rfelement(Gain=10);

Calculate the RF budget 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.

rfobj = rfbudget([a m r],2.1e9,-30,10e6)
rfobj = 
  rfbudget with properties:

               Elements: [1x3 rf.internal.rfbudget.RFElement]
         InputFrequency: 2.1 GHz
    AvailableInputPower: -30 dBm
        SignalBandwidth:  10 MHz
                 Solver: Friis      
             AutoUpdate: true

   Analysis Results
        OutputFrequency: (GHz) [  2.1    3.1    3.1]
            OutputPower: (dBm) [  -26    -26    -16]
         TransducerGain: (dB)  [    4      4     14]
                     NF: (dB)  [    0      0      0]
                   IIP2: (dBm) []                   
                   OIP2: (dBm) []                   
                   IIP3: (dBm) [  Inf      9      9]
                   OIP3: (dBm) [  Inf     13     23]
                    SNR: (dB)  [73.98  73.98  73.98]

Create the measurement testbench from the RF budget object.

exportTestbench(rfobj)

exporttestbench.png

Select Run to simulate your testbench.

exporttestbench2.png

The response will be displayed when you run the testbench.

exporttestbench3.png

Input Arguments

expand all

RF budget object, specified as a rfbudget object.

Version History

Introduced in R2017a