完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嘿,我目前正在利用一整套不同的安捷伦网络分析仪型号(5230A,5230C,5234A,5227A,5232A和5235A)开展labview项目。
在我的程序中,我使用名为check sweep complete的AGPNA VI。 我使用这个VI来触发单次扫描,进入保持状态,然后从该扫描中读取数据。 我遇到了这个特殊VI的问题,有时它不会等待扫描在数据读取之前完成,从而导致数据的非常不准确。 有没有人在labview中使用特定的VI遇到问题? 附件是检查扫描码和后续SCPI命令的屏幕截图。 谢谢。 Capture2.PNG15.7 KB 以上来自于谷歌翻译 以下为原文 Hey, I currently am working on a project in labview utilizing a hand full of different Agilent Network Analyzer models (5230A, 5230C, 5234A, 5227A, 5232A, and 5235A). In my program I use an AGPNA VI called check sweep complete. I use this VI to trigger a single sweep, go into hold, and then read the data from that sweep. I am running into an issue with this particular VI, on occasion it does not wait for the sweep to be completed before the data is read, making for a very inaccurate plot of data. Has anyone run into issues with using the particular VI in labview? Attached are a screen shot of the check for sweep code and subsequent SCPI commands. Thanks. 附件
|
|
相关推荐
3个回答
|
|
没有碰到它,但不熟悉Labview VI。
daras是我们最好的资源。 以上来自于谷歌翻译 以下为原文 Not run into it but not that familiar with Labview VI. daras is our best resource on that. |
|
|
|
此外,sing命令不是OPC'd。
但不熟悉Labview我不知道扫描检查完成框中发生了什么。 并且您不希望在每次调用后重新设置为连续,将其保留(这是SING命令的结果),直到您完成远程控制。 但同样,不熟悉labview足以真正帮助。 daras正在外出度假。 以上来自于谷歌翻译 以下为原文 Also, the sing command is not being OPC'd. but not being familiar with Labview I don't know what's going on in the sweep check complete box. And you don't want to set back to continuous after each call, leave it in hold (which is the result of the SING command) until you are all finished with remote control. but again, not familiar with labview enough to really help. And daras is out on vacation. |
|
|
|
首先要尝试的是:在手册中,在STAT:OPER:DEV部分,我点击了“关键字”链接。
它提到在设置事件寄存器后,它会保持设置直到被读取或重置。 如果Capture1中显示的VI在循环中运行(这样PNA处于连续模式,在进入此VI时进行测量),您可以在“CALC:PAR”之前删除额外的“Check Sweep Complete”块。 SEL ...“签证阻止(在发送命令之前清除”测量完成“事件位)。 http://na.support.keysight.com/pna/help/WebHelp9_42/Programming/GP-IB_Command_Finder/Status_Keywords.htm如果不起作用,请继续阅读。 我不确定这是否适用于scpi命令,但是当使用COM接口编程时,我会注册一个事件(OnChannelEvent)来触发我的软件从PNA中提取数据。 起初我使用过CHANNEL_SWEEP_COMPLETE事件,但是在某些软件更改(以及PNA设置更改)之后的某个时刻,我开始使用此调用获取虚假数据。 我最终发现我需要使用ALL_SWEEPS_COMPLETED_AND_PROCESSED事件。 在那次活动之后我总能获得好的数据。 http://na.support.keysight.com/pna/help/WebHelp9_42/Programming/COM_Reference/Events/OnChannelEvent.htm但是,我没有在scpi STAT:OPER:DEV命令中看到类似的东西。 手册上的内容就像第4位一样,只代表我试图使用的第一个事件。 http://na.support.keysight.com/pna/help/WebHelp9_42/Programming/GP-IB_Command_Finder/Status.htm我想知道几件事:你为“检查扫描完成”显示的VI只检查来自 “STAT:OPER:DEV?” 是!= 0.即使其他寄存器位在手册中显示“未使用”,它们可能仍会填充某些东西? 也许您应该从该命令获取结果,逻辑AND与0x10隔离该位,然后检查状态。 如果这不起作用,可能另一个寄存器保存有关扫描完成和处理的更多信息......可能是“标准事件状态寄存器”或“平均完整摘要”寄存器? 编辑:mr_matt于2015年9月2日12:25 PM编辑:mr_matt于2015年9月2日12:27 PM 以上来自于谷歌翻译 以下为原文 First thing to try: In the manual, in the STAT:OPER:DEV section, I clicked the "keyword" link. It mentions that after an event register is set, it remains set until being read or reset. If your VI shown in Capture1 is run in a loop (such that the PNA is in continuous mode taking measurements when entering this VI), you might be able to drop an extra "Check Sweep Complete" block in BEFORE the "CALC:PAR:SEL..." visa block (to clear the "measurement complete" event bit before sending the command). http://na.support.keysight.com/pna/help/WebHelp9_42/Programming/GP-IB_Command_Finder/Status_Keywords.htm If that doesn't work, keep reading. I'm not sure if this applies to scpi commands, but when programming with the COM interface, I would register an event (OnChannelEvent) to trigger my software to pull data from the PNA. At first I had used the CHANNEL_SWEEP_COMPLETE event, but at some point after some software changes (and PNA setup changes), I started getting bogus data using this call. I eventually found I needed to use the ALL_SWEEPS_COMPLETED_AND_PROCESSED event. I would always get good data after that event. http://na.support.keysight.com/pna/help/WebHelp9_42/Programming/COM_Reference/Events/OnChannelEvent.htm However, I don't see something similar in the scpi STAT:OPER:DEV command. The manual reads to me like bit 4 ONLY represents the first event I had tried to use. http://na.support.keysight.com/pna/help/WebHelp9_42/Programming/GP-IB_Command_Finder/Status.htm I wonder several things: The VI you show for "Check Sweep Complete" only checks to see if the response from "STAT:OPER:DEV?" is != 0. Even though the other register bits show "unused" in the manual, they might still be populated with something? Maybe you should take the result from that command, logical AND with 0x10 to isolate that bit, then check the state. If that doesn't work, maybe another register holds more information about the sweeps being complete AND processed... maybe the "Standard Event Status Register" or the "Averaging Complete Summary" register? Edited by: mr_matt on Sep 2, 2015 12:25 PM Edited by: mr_matt on Sep 2, 2015 12:27 PM |
|
|
|
只有小组成员才能发言,加入小组>>
985 浏览 0 评论
2254 浏览 1 评论
2035 浏览 1 评论
1911 浏览 5 评论
2777 浏览 3 评论
764浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
554浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
648浏览 0评论
2436浏览 0评论
1493浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-9-9 22:18 , Processed in 1.282661 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191