Network S-Parameters in Simulink

2 次查看(过去 30 天)
Using the example: "Lossy Multiconductor Transmission Line Circuit", how do I extract the full network sparameters within the Simulink model (simrf_coupled_pb) from Vin to Vout as is done in the matlab code line:
setports(ckt,[1 0],[15 0])
S_vout = sparameters(ckt,freqfit)
I'd like to find a way to do this all in simulink if possible to avoid building circuits in matlab, and instead simply build a network in simulink, pick two ports and measure the s-parameters. Thank you so much.

回答(1 个)

Saarthak Gupta
Saarthak Gupta 2023-9-5
Hi Derek,
I understand you are trying to measure all S-parameters between any two ports of a network within Simulink itself, without building the corresponding circuit as MATLAB code.
For your purpose, you may use the ‘S-Parameter Testbench’ block which is part of the RF Blockset.
Refer to the following steps in context of the model ‘simrf_coupled_pb’ which is part of the ‘LossyMulticonductorTransmissionLinesCircuitsExample’ example shipped with the RF Toolbox:
  • Add a ‘S-Parameter Testbench’ block to the canvas and attach the ports between which you want to measure the S-parameters to ports 1 and 2 of the ‘S-Parameter Testbench’ block.
  • In the Block Parameters of the ‘S-Parameter Testbench’ block, configure the properties of the stimulus. Make sure to clear the ‘Use internal Configuration block’ checkbox in case you are defining the settings of the network externally, as in the example.
  • Upon running the simulation, you will find a ‘sparameters’ object created in the base workspace, containing the measurement data. Default name of the object will be ‘SParamObjOut’ which can be changed in the Block Parameters.
Please refer to the documentation of the S-Parameter Testbench for more details. https://in.mathworks.com/help/simrf/ref/sparametertestbench.html

类别

Help CenterFile Exchange 中查找有关 Circuit Envelope Simulation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by