完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嘿所有,我在HGST工作,并负责通过tcl控制81134A模式/脉冲发生器。
我的经理希望我能够通过tcl脚本通过LAN与发电机进行通话和发送命令。 到目前为止,我已经下载了Agilinet IO库并通过lan连接到我的仪器,参见附图。 这是我迷路了,我无法弄清楚如何打开签证会话并发送命令通过tcl进行沟通。 我下载了tcl签证并尝试了以下命令:set rm visa :: open-default-rm set vi我尝试用Agilent IO gui中给出的Visa地址替换ASRL1以通过LAN连接,但这也不起作用。 我不确定这是否是通过lan打开签证会话的正确方法,我读过ASRL只是COM1端口的别名,所以这不是我想要的。 我也尝试使用以下命令打开一个套接字设置chan套接字x y其中x是设备ip,y是TCPIP端口5025我在这个第3个月实习,所以我很新,不熟悉这个。 我很感激任何帮助完成这项任务,或者如果你知道一个更好的方法来实现这一目标也会很棒。 一步一步是理想的。 谢谢!! 以上来自于谷歌翻译 以下为原文 Hey all, I'm working at HGST and have been put in charge of controlling the 81134A pattern/pulse Generator through tcl. My manager wants me to be able to talk and send commands with the generator over LAN through tcl script. So far, I have downloaded the Agilinet IO libraries and connected to my instrument over lan, See attached image. This is were I'm lost, I can't figure out how to open a visa session and send command over tcl to communicate. I downloaded tcl visa and tried the following command: set rm visa::open-default-rm set vi I've tried replacing ASRL1 with the Visa address given in the Agilent IO gui to connect over LAN, but that does not work either. I'm not sure if this is correct method to open a visa session over lan, i've read that ASRL is just an alias for COM1 port, so that's not what I want. I also have tried to open a socket with the following commands set chan socket x y where x is teh devices ip and y is the TCPIP port 5025 I am an intern here in my 3rd month so I am very new and unfamiliar with this. I would appreciate any help with this task, or if you know of a better way to accomplish this that would be great too. step by step would be ideal. Thanks!! 附件
|
|
相关推荐
6个回答
|
|
好的,所以我根据你的截图信息安装了TCL和TLC VISA,以下内容对你有用。
它有用吗? 我把它放在附件中,因为格式很奇怪。编辑:hognala于2013年9月5日下午6:03 以上来自于谷歌翻译 以下为原文 ok, so I installed TCL and TLC VISA based on your screenshot info, the following should work for you. Does it work? I put it in an attachment because the formatting was weird. Edited by: hognala on Sep 5, 2013 6:03 PM 附件
|
|
|
|
如果NI-MAX不了解LAN仪器并且您尝试通过NI-VISA访问它,则会出现该错误消息。 为了解决这个问题,我认为您应该打开NI-MAX,然后在那里添加LAN仪器。 以上来自于谷歌翻译 以下为原文 That error message appears if NI-MAX doesn't know about the LAN instrument and you try to access it through NI-VISA. To fix this, I think you should open NI-MAX, then add a LAN instrument there. |
|
|
|
MAX_zuo 发表于 2018-12-12 10:37 我成功开通了gpib的签证会议,但就像我提到的那样,我的经理希望通过局域网进行通信。 还有其他你能想到的吗? 以上来自于谷歌翻译 以下为原文 I successfully opened a visa session over gpib, but like I mentioned, my manager wants to communicate over LAN. Anything else you can think of? |
|
|
|
所以我验证了81134A支持SICL-LAN,但不支持VXI-11。 它们是非常相似的LAN协议,具有相同的地址字符串格式,但NI不支持SICL-LAN。 Agilent VISA支持SICL-LAN和VXI-11。 此方案中的简单解决方案是从该PC卸载NI-VISA,然后卸载并重新安装Agilent IO Libraries Suite。 稍微更难的解决方案是更改TCL扩展名以明确指向Agilent VISA .dll。 我以前从未这样做过,但它应该是可能的。 以上来自于谷歌翻译 以下为原文 So I verified that the 81134A supports SICL-LAN, but not VXI-11. They are very similar LAN protocols, with the same address string format, but NI does not support SICL-LAN. Agilent VISA supports SICL-LAN and VXI-11. The easy solution in this scenario is to uninstall NI-VISA from that PC, then uninstall and reinstall Agilent IO Libraries Suite. The slightly harder solution is to change the TCL extension to explicitly point to the Agilent VISA .dll. I've never done this before, but it should be possible. |
|
|
|
MAX_zuo 发表于 2018-12-12 11:08 这就是诀窍,谢谢你的帮助! 以上来自于谷歌翻译 以下为原文 That did the trick, thanks for the help! |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
1226 浏览 0 评论
2348 浏览 1 评论
2159 浏览 1 评论
2024 浏览 5 评论
2905 浏览 3 评论
970浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
703浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
803浏览 0评论
1226浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-24 06:21 , Processed in 1.396617 second(s), Total 57, Slave 51 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号