许可优化
许可优化
产品
产品
解决方案
解决方案
服务支持
服务支持
关于
关于
软件库
当前位置:服务支持 >  软件文章 >  Matlab S2P文件写入:Touchstone文件生成方法

Matlab S2P文件写入:Touchstone文件生成方法

阅读数 7
点赞 0
article_banner

Create RF Circuit Object to Represent an RLCG Transmission Line

Create a txlineRLCGLine object to represent a RLCG transmission line. This example uses Name-Value pairs to implement the parameters in the RLCG transmission line shown in figure 1 [1].

9147f474a2411823840533048c1bdfa8.png

Figure 1: RLCG transmission line.

ckt1 = txlineRLCGLine('R',100,'L',80e-9,'C',200e-12,'G',1.6);

Clone Circuit Object

Use the clone function to make a copy of the transmission line object.

ckt2 = clone(ckt1)

ckt2 =

txlineRLCGLine: RLCGLine element

Name: 'RLCGLine'

Frequency: 1.0000e+09

R: 100

L: 8.0000e-08

C: 2.0000e-10

G: 1.6000

IntpType: 'Linear'

LineLength: 0.0100

Termination: 'NotApplicable'

StubMode: 'NotAStub'

NumPorts: 2

Terminals: {'p1+' 'p2+' 'p1-' 'p2-'}

Cascade Two Circuit Objects

Use the circuit object to cascade the two transmission lines.

ckt = circuit([ckt1,ckt2]);

Analyze and Plot S-Parameter Data

Use the sparameters object to analyze the cascadeed transmission line in the frequency domain.

freq = linspace(0,10e9);

ckt_sparameters = sparameters(ckt,freq);

Use the smithplot method to plot the object's S11 on a Smith chart®.

figure

smithplot(ckt_sparameters,[1,1],'LegendLabels','S11 Original')

56f5846da3e10611e603c15bc0144fb0.png

Write Data to S2P File

Use the rfwrite function to write the data to a file.

workingdir = tempname;

mkdir(workingdir);

filename = fullfile(workingdir,'myrlcg.s2p');

if exist(filename,'file')

delete(filename)

end

rfwrite(ckt_sparameters,filename);

Compare Data

Read the data from the file myrlcg.s2p into a new sparameters object and plot input reflection coefficient, S11 on a Smith chart. Visually compare the 'S11 original' and 'S11 from S2P' to confirm that the data matches.

compare_ckt = sparameters(filename);

figure

smithplot(compare_ckt,[1,1],'LegendLabels','S11 from S2P')

1cc833e5cf015132b8667e408f65e074.png

[1] M. Steer, "Transmission Lines," in Microwave and RF Design: Transmission Lines. vol. 2, 3rd ed. Raleigh, North Carolina, US: North Carolina State University, 2019, ch. 2, sec. 2, pp.58.


免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删


相关文章
技术文档
QR Code
微信扫一扫,欢迎咨询~
customer

online

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 board-phone 155-2731-8020
close1
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

姓名不为空

姓名不为空
手机不正确

手机不正确

手机不正确
公司不为空

公司不为空

公司不为空