Borrar filtros
Borrar filtros

Network S-Parameters in Simulink

3 visualizaciones (últimos 30 días)
Derek Neal
Derek Neal el 17 de Nov. de 2022
Respondida: Saarthak Gupta el 5 de Sept. de 2023
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.

Respuestas (1)

Saarthak Gupta
Saarthak Gupta el 5 de Sept. de 2023
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

Categorías

Más información sobre Circuit Envelope Simulation en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by