是德科技
直播中

h1654155275.5889

8年用户 207经验值
私信 关注
[问答]

从VNA保存数据使用matlab绘制给出了2个不同的峰值

嗨,我有一个关于从VNA保存数据并使用matlab绘制它(数据)的问题。
我附加了2个文件,我从VNA(屏幕截图)和matlab图中获得。
它给出了2个不同的峰值。
谁能解释我为什么会这样?
如何获得类似于VNA屏幕截图的情节?
谢谢。编辑:srms于2014年5月19日下午5:49附上数据文件。
谢谢VNA_sceeen shot.jpg88.3 KBmatlab_plot.jpg24.9 KB

以上来自于谷歌翻译


     以下为原文

  Hi,

I have a question regarding saving data from VNA and plotting it(data) using matlab. I have attached 2 files which I obtained from VNA(a screen shot) and the matlab plot. It gives 2 different peak values. Can anyone explain me why this happens? how do I get a plot similar to VNA screen shot?  

Thank you.

Edited by: srms on May 19, 2014 5:49 PM
data file is also attached. thank you   
附件

回帖(6)

廉凌刚

2019-3-4 07:01:46
我认为你需要更改定义的数据保存格式,下面的链接会有所帮助,我不熟悉你的确切分析器。
如果我使用matlab并且需要将数据从线性切换到日志,我通常使用内置函数:mag2db和dB2mag。
http://na.tm.agilent.com/pna/help/latest/S5_Output/SaveRecall.htm#ASCII -Chris

以上来自于谷歌翻译


     以下为原文

  I think you need to change the defined data save format, the link below will help, I'm not familiar with your exact analyzer. If I'm using matlab and need to switch data from linear to log, I typically use the built in functions: mag2db and dB2mag. 

http://na.tm.agilent.com/pna/help/latest/S5_Output/SaveRecall.htm#ASCII


-Chris
举报

h1654155275.5889

2019-3-4 07:10:58
引用: dipper006 发表于 2019-3-4 07:01
我认为你需要更改定义的数据保存格式,下面的链接会有所帮助,我不熟悉你的确切分析器。
如果我使用matlab并且需要将数据从线性切换到日志,我通常使用内置函数:mag2db和dB2mag。
http://na.tm.agilent.com/pna/help/latest/S5_Output/SaveRecall.htm#ASCII -Chris

感谢您的答复。
我将数据保存在data.CSV文件(附加)中,它在DB中。
我使用dB2mag将数据转换为线性。
当我们以CSV格式保存数据时,它是否可以节省幅度和相位?

以上来自于谷歌翻译


     以下为原文

  Thank you for the reply. I save data in data.CSV file(attached) and it is in DB. i use dB2mag to convert data to linear. when we save data in CSV format does it save magnitude and phase?
举报

孔德羲

2019-3-4 07:30:04
比你想象的要复杂一点。
显示的数据是b2,1,它是端口2的功率。您的绘图是lin mag,因此结果以瓦特为单位。
你认为你是在测量功率还是你认为你正在测量增益之比(可能是S21或b2 / a1或B / R)。
要将matlab转换为pna数据,您需要告诉我们matlab数据的单位是多少;
伏特,瓦特,毫瓦,dBm,dBmV?

以上来自于谷歌翻译


     以下为原文

  slightly more complicated than you might expect.

The data shown is b2,1 which is the power at port 2.  you plot is in lin mag, so the results is in Watts.

Do you think you are measuring power or do you think you are measuring a ratio such as gain (which would be S21 or b2/a1 or B/R).

to convert the matlab to pna data, you need to tell us what the units of the matlab data is; volts, watts, milliwatts, dBm, dBmV?
举报

h1654155275.5889

2019-3-4 07:38:14
感谢您的答复。
我正在测量b2 / a1(a1 = 1),频率(Hz),b2,1(DB),b2,1(DEG),是我在.CSV文件中的列,当我以logmag /格式保存数据时
度。
然后我在matlab中使用dB2mag函数将DB转换为LIN。
我认为matlab图的单位是伏特。

以上来自于谷歌翻译


     以下为原文

  Thank you for the reply.

I am measuring b2/a1 (a1=1) , 

Freq(Hz),     b2,1(DB),      b2,1(DEG), are the columns I get in .CSV file , when I save data in the format logmag/deg. then I convert DB to LIN using dB2mag function in matlab. 

I think units of the matlab plot is volts.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分