完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好我试图将数据(D = s11,T = s12 * s21和M = s22)从matlab发送到VNA并将其作为数据数据读回而不是跟踪数据。
任何帮助都非常感谢。 提前致谢。 节目播音员 以上来自于谷歌翻译 以下为原文 Hi everyone im trying to send data (D=s11, T= s12*s21 and M=s22) from MATLAB to the VNA and read it back as an data arrays not trace data. Any help is greatly appreciate. Thanks in advance. DeeJay |
|
相关推荐
11个回答
|
|
似乎你正试图将校准错误条款发送到框中,也许你正在尝试对夹具进行去除?
我看到你有另一篇关于阅读和写作的文章; Outpdata应该返回读数的2倍,是吗? 对于cal系数也是如此。 重新编写校准系数有时很棘手。 我没有一个方便的例子,但是每当你把数据写回到盒子里时,将数据放在一个大字符串中是非常挑剔的。 如InpuCalc01 12,2,1,3,5 ....如果中间有EOL,则没有任何反应。 以上来自于谷歌翻译 以下为原文 seems that you are trying to send calibration error terms into the box, maybe you are trying to do dembedding of a fixture? I saw you had another post about reading and writing; Outpdata should return 2x the number of readings, does it? The same is true for the cal coefficients. Writing cal coefficients back in is sometimes tricky. I don't have an example handy, but any time you write data back into the box it is very finicky about getting the data in one big string. As in InpuCalc01 12,2,1,3,5.... If there is an EOL in between, nothing happens. |
|
|
|
脑洞大赛9 发表于 2018-12-18 10:03 感谢您的回复是我试图将单端口校准的3个错误项发送到VNA并将其作为数据阵列读回,其中阵列将具有n个点(默认值= 201)。 我设法编写一个MATLAB代码,使用短,开和负载标准的反射系数的随机值计算D,T和M误差项。 %-----------标准参数------------------------ function [DMT] = one_port1(R1,R2,R3 )clc; %-----------标准参数------------------------%R1 =加载%R2 =开头%R3 =短 %-----------反射系数的测量参数-------------------------- Rm1 = 0.0500 + 0.7400j ; Rm2 = -0.5745 + 1.4454j; Rm3 = 0.4410 + 0.8231j; %----------- 3 * 3矩阵---------------------------------- - Z = [Rm1; RM2; RM3]; Y = [1 R1 -R1 * Rm1; 1 R2 -R2 * Rm2; 1 R3 -R3 * Rm3]; A = inv(Y); X = A * Z; %-----------输出值------------------------------- D = X(1 ); B = X(2); M = X(3); T = B-D * M; DMT = [X(1); X(3); T]; 上面的代码确定3个错误项,我想在代码中实现它(使用MATLAB将数据写回VNA(8753))所以当我读回数据时,我有n *点数的反射系数和错误项的数组 对应于30kHz至3GHz的特定频率。 以上来自于谷歌翻译 以下为原文 thanks for the reply yes im trying to send the 3 error terms of a one-port calibration to the VNA and read it back as a data array where the array will have n number of points (default = 201). i manage to write a MATLAB code which calculate the D,T and M error terms using random values of the reflection coefficient for the short, open and load standard. %-----------Standard Parameters------------------------ function [DMT] = one_port1(R1,R2,R3) clc; %-----------Standard Parameters------------------------ %R1 = load %R2 = Opend %R3 = Short %-----------Measured Parameters for the reflection coefficient-------------------------- Rm1 = 0.0500 + 0.7400j; Rm2 = -0.5745 + 1.4454j; Rm3 = 0.4410 + 0.8231j; %-----------3*3 matrix------------------------------------ Z = [Rm1; Rm2; Rm3]; Y = [1 R1 -R1*Rm1; 1 R2 -R2*Rm2; 1 R3 -R3*Rm3]; A = inv(Y); X = A*Z; %-----------Output values------------------------------- D = X(1); B = X(2); M = X(3); T = B-D*M; DMT = [X(1);X(3);T]; the code above determine the 3 errors term and i wanna implement it in the code (Write data back to VNA(8753) using MATLAB) so when i read back the data i have arrays of n*point number of reflection coefficient and error terms each corresponding to a specific frequency from 30kHz to 3GHz. |
|
|
|
脑洞大赛9 发表于 2018-12-18 10:03 关于INPUCALCxx,我尝试使用它来输入3个错误项,然后使用SAVC保存它并最终输出数据fwrite(obj1,'OUTPCALCxx)但它不起作用。 任何帮助都将成为生命的救星。 提前致谢 以上来自于谷歌翻译 以下为原文 in regard to INPUCALCxx i tried using it to input the 3 errors terms and then save it using SAVC and finaly output the data fwrite(obj1, 'OUTPCALCxx) but it is not working. any help will be a life savior. Thanks in advance |
|
|
|
chinarensz 发表于 2018-12-18 10:34 对于87xx分析器,如果您打算上传这样的错误术语,我相信这些分析器首先要求您发送声明您打算上传其错误术语的cal类型的命令。 例如,“CALIS111”表示1端口cal端口1,或“CALIFUL2”表示Full 2端口cal。 然后通过INPUCALCxx上传电子条款并发送SAVC命令以激活校准。 (几年前我曾经支持过87xx分析仪,但我现在已经在PNA上工作了很长时间,因此我的87xx知识每年都会消失一些) 以上来自于谷歌翻译 以下为原文 With the 87xx analyzers if you intend to upload error terms like that, I believe those analyzers first expect you to send the command which declares the type of cal whose error terms you intend to upload. For example, 'CALIS111' for a 1-port cal of port 1, or 'CALIFUL2' for Full 2-port cal. And then upload the e-terms via INPUCALCxx and send the SAVC command to activate the cal. (I used to support the 87xx analyzers years ago but I've been working almost exclusively on PNA now for a very long time so my 87xx knowledge fades a little more each year) |
|
|
|
uwyywefwd 发表于 2018-12-18 10:46 如果你覆盖了错误条款,我认为你不会发送CALIFULL2,我认为这是针对下载的标准测量(8753重新使用的内存用于标准和错误术语),因此它知道重新计算SAVC上的错误条款。 我必须挖掘更多才能记住自己。 以上来自于谷歌翻译 以下为原文 I don't think you send the CALIFULL2 if you are overwriting error terms, I think that is for downloaded standards measurments(the 8753 re-used memory for standards and error terms) so it knows to recompute error terms on the SAVC. I'd have to dig some more to remember myself. |
|
|
|
uwyywefwd 发表于 2018-12-18 10:46 嗨感谢您的回复我设法编写代码(f = start_freq:f_step:end_freq;对于i = 1:length(f)DMT(i,:) = one_port1(0,-1,1); end)发送 VNA中的DMT(错误术语)。 但是,新数据(fwrite(obj1,'OUTPCALC01; OUTPCALC02; OUTPCALC03'); newdata = scanstr(obj1);)发送回VNA不对应于DMT值。 所以我做错了什么 以上来自于谷歌翻译 以下为原文 hi thanks for the reply i manage to write a code (f = start_freq:f_step:end_freq; for i = 1:length(f) DMT(i,:) = one_port1(0,-1,1); end ) to send the DMT(error terms) in the VNA . However the newdata (fwrite(obj1, 'OUTPCALC01;OUTPCALC02;OUTPCALC03'); newdata = scanstr(obj1);) send back to the VNA does not correspond to the DMT values. so what im doing wrong |
|
|
|
chinarensz 发表于 2018-12-18 11:01 outpcalc01是从VNA读取校准系数到计算机的命令。 您必须通过查询发送命令,然后读回所有数据。 Inpucalc01用于将数据发送到insturment,然后你必须将它全部发送到一个字符串中,如果使用ascii,例如INPUCALC01 .01,.02,.1,.2 ....(这是 真的,即时通讯,我认为)。 以上来自于谷歌翻译 以下为原文 outpcalc01 is the command to READ cal coefficients from the VNA to the computer. You have to send the command, with a query, and then read back all the data. Inpucalc01 is used to send data to the into the insturment, and then you have to send it all in one string, if using ascii, such as INPUCALC01 .01,.02,.1,.2.... (which are the real, im pairs, I think). |
|
|
|
脑洞大赛9 发表于 2018-12-18 11:13 另外,仅仅是为了我的信息,你是大学生吗? 或者为专业公司工作? 以上来自于谷歌翻译 以下为原文 Also, just for my information, are you a university student? or working for a professional company? |
|
|
|
毕业工作 以上来自于谷歌翻译 以下为原文 graduate jobs |
|
|
|
脑洞大赛9 发表于 2018-12-18 11:13 谢谢你的回复Dr.Joel所以我必须首先准备我想发送的数据,然后根据数组的数量用[INPUCALCxx(数据),INPUCALCxx(数据)]发送它。 一旦完成,我必须查询数据发送[newdata = query(obj1,'OUTPCALCxx)]。 然后用[fwrite(obj1,OUTPCALCxx)],[then newdata = scanstr(obj1)]从分析仪读回数据。 以上过程是否正确? 以上来自于谷歌翻译 以下为原文 thanks for your reply Dr.Joel so i have to first prepare the data i wanna sent, then send it with [INPUCALCxx(data),INPUCALCxx(data)] according to the number of array. once that is done i have to query the data send [newdata = query(obj1, 'OUTPCALCxx)]. then read back the data from the analyser with [fwrite(obj1, OUTPCALCxx)], [then newdata = scanstr(obj1)]. is the above process correct? |
|
|
|
脑洞大赛9 发表于 2018-12-18 11:13 嗨,Dr_Joel,你说:Inpucalc01用于将数据发送到insturment,然后你必须将它全部发送到一个字符串,如果使用ascii,如INPUCALC01 .01,。02,。1,.2 .. ..(我认为这是真实的,即成对的)。 问题是,现在当使用CALIS111初始化1端口校准的S11和S22时; CALIS221数据准备不发送到VNA准备数据是one_port1函数调用然后把扫描保持,然后写新 error_term到VNA使用但在运行空洞代码后,使用INPUCALCxx发送的数据与error_term不同,后者是one_port1函数的DMT。 我在那个阶段做错了什么。 在此先感谢编辑:DeeJay于2013年7月10日上午4:02 以上来自于谷歌翻译 以下为原文 hi Dr_Joel, You said: Inpucalc01 is used to send data to the into the insturment, and then you have to send it all in one string, if using ascii, such as INPUCALC01 .01,.02,.1,.2.... (which are the real, im pairs, I think). the issue is that, now when initialising the S11 and S22 of a 1-port calibration using CALIS111;CALIS221 the data prepare is not send to the VNA the prepare data is the one_port1 function call using then put sweep on hold, then write the new error_term to the VNA using but after running the hole code the data send using INPUCALCxx are not the same with the error_term which are the DMT from the one_port1 function. What im doing wrong at that stage. Thanks in advance Edited by: DeeJay on Jul 10, 2013 4:02 AM |
|
|
|
只有小组成员才能发言,加入小组>>
1234 浏览 0 评论
2352 浏览 1 评论
2163 浏览 1 评论
2028 浏览 5 评论
2912 浏览 3 评论
979浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
711浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
811浏览 0评论
1236浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-28 01:19 , Processed in 1.587435 second(s), Total 100, Slave 81 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号