필터 지우기
필터 지우기

Network S-Parameters in Simulink

조회 수: 2 (최근 30일)
Derek Neal
Derek Neal 2022년 11월 17일
답변: Saarthak Gupta 2023년 9월 5일
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에서 S-Parameters and Linear Components에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by