完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我想从N5230A获得S参数。
我与labview和DCOM连接。 为此,我得到了一个示例表单[http://na.tm.agilent.com/pna/programming/]问题是我无法获得S12或S21的值。 如果我运行我的程序,我在N5230A上看到一个新的测量(S12),但我没有得到正确的数据回到LabView。 任何人都有一个想法,我做错了ruben 以上来自于谷歌翻译 以下为原文 hallo, i want to get the S-Parameter from the N5230A. I am connected with LabView and DCOM. For this i got an example form [http://na.tm.agilent.com/pna/programming/] the problem is i cant get the value of S12 or S21. If i run my program i see on the N5230A a new measurement (S12) but i dont get the correct data back to LabView. anyone have an idear what i do wrong ruben 附件
|
|
相关推荐
3个回答
|
|
当你只是陈述“......但我没有将正确的数据传回LabView”时,很难说出问题是什么。
看着你的代码,你似乎在询问原始数据。 如果你碰巧在你的频道中打开了更正,但随后要求提供原始数据,那么PNA屏幕上的数据可能看起来不像你在程序中找到的数据,因为一个被纠正而另一个没有。 因此,您需要更准确地描述您回收的数据是不正确的,然后我们可以帮助您解决问题。 我在您的代码中看到的唯一其他潜在问题是您将通道置于保持状态,然后将触发设置为手动,然后发出channel.single()。 如果你要做的就是让你的程序控制什么时候进行扫描,那么你需要的就是保持通道,然后使用channel.single()命令,只要你想让pna进行扫描 那个频道。 您无需设置触发源或通道触发模式。 但是,你所做的仍然完成同样的事情(除非我读错了LabView代码 - 这可能是因为我不是LabView用户),并且它应该对getdata命令返回的数据没有不良影响。 以上来自于谷歌翻译 以下为原文 It is hard to tell what the problem is when you just state "...but i dont get the correct data back to LabView". looking at your code, it appears that you are asking for raw data. if you happen to have corrections turned on in your channel, but then ask for raw data, then the data on the PNA screen may not look like the data you get back in your program, because one is corrected and the other is not. So you need to be a little more descriptive about how the data you are getting back is not correct and then we may be able to help you troubleshoot the problem. the only other potential issue I see in your code is that you put the channel on hold, then set the triggering to manual and then issue a channel.single(). If all you are trying to do is have your program control when to take a sweep, then all you need is to put the channel on hold and then use the channel.single() command, whenever you want the pna to take a sweep in that channel. you don't need to set the trigger source or the channel trigger mode. However, what you have still accomplishes the same thing (unless I am reading the LabView code wrong - which is possible since I am not a LabView user), and it should have no ill effect on the data returned from the getdata command. |
|
|
|
Topcbpcba 发表于 2018-11-23 10:30 好像所有的测量结果都不正确,跟踪看起来是simelar但它们有“偏移”,只有一条电缆连接到Networkanalyser的每个端口,并带有开放端。 如果我测量我应该为S11得到关于“0dB”的值,对于S21得到关于“-80dB”的值。 这个值在Networkanalyser的显示屏上是正确的,但在Labview的显示屏上,我得到S11的值约为“1 dB”,而S21的值约为0 dB“但曲线延伸完全相同。我希望这个描述 错误更好!是否可以从互联网上下载程序员指南?理想情况下通过DCOM连接的LabView?感谢您的时间和帮助亲切的问候Ruben 以上来自于谷歌翻译 以下为原文 okey it seems like all measurement results are not correct, the traces look simelar but they have "offsets" only a cable is connected to to each port of the Networkanalyser with open end. If i measure i should get for S11 the value about "0 dB" and for S21 the value about "-80 dB". This values are correct on the display of the Networkanalyser but at the display of Labview i get for S11 the value about "1 dB" and for S21 the value about 0 dB" but the curve extending are exactly the same. i hope this description of the mistake is better! Is it possible to download a programmer guide from the internet? ideally for LabView connected via DCOM? thanks for your time and help Kind regards Ruben |
|
|
|
734747535qwe 发表于 2018-11-23 10:49 正如我之前所说,我不是LabView专家,不幸的是,我们为PNA提供的唯一LabView示例都基于PNA SCPI接口,您实际上可以从原始帖子中的相同链接下载这些示例。 为了查看我是否可以重复您的问题,我按照您的描述(端口1和2打开)设置了我的PNA-X(N5247A),然后我复制了您在Agilent VEE中的LabView代码中使用的所有相同的COM命令。 这是我运行VEE代码时得到的结果:https://dl.dropboxusercontent.com/u/87949221/Forum/ThreadID_38243/VeeProgram.png! 以下是PNA上显示的内容:https://dl.dropboxusercontent.com/u/87949221/Forum/ThreadID_38243/PNADisplay.png! 正如您所看到的那样,显示屏和V形程序中的值是相同的(正如人们所期望的那样)。 数据传输可能存在一些LabView特定问题。 您是否可以尝试使用其他语言进行实验,以确定问题是否与语言相关? 您可以随时免费下载Agilent VEE评估版,甚至可以使用PNA COM接口使用VB,VBScript或VB.NET。 以上来自于谷歌翻译 以下为原文 As I said before, I am not a LabView expert and unfortunately, the only LabView examples that we have for the PNA are all based on the PNA SCPI interface and you can actually download those from the same link that you had in your original post. To see if I could repeat your problem, I setup my PNA-X (N5247A) similarly as you described (ports 1 and 2 open) and then I replicated all the same COM commands that you used in your LabView code in Agilent VEE. Here is what I get when I run my VEE code: !https://dl.dropboxusercontent.com/u/87949221/Forum/ThreadID_38243/VeeProgram.png! and here is what is displayed on the PNA: !https://dl.dropboxusercontent.com/u/87949221/Forum/ThreadID_38243/PNADisplay.png! As you can see the values on the display and in the vee program are identical (as one would expect). there may be some LabView specific issue with the data transfer. would you be able to try your experiment with a different language to see if the issue is language related? you can always download an evaluation version of Agilent VEE for free or even use VB, VBScript, or VB.NET with the PNA COM interface. |
|
|
|
只有小组成员才能发言,加入小组>>
1221 浏览 0 评论
2346 浏览 1 评论
2155 浏览 1 评论
2021 浏览 5 评论
2900 浏览 3 评论
964浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
700浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
801浏览 0评论
1223浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 14:30 , Processed in 1.626769 second(s), Total 83, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号