完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我的同事,我的同事想要从Linux笔记本电脑上运行34972A测试仪上的Expect(TCL)脚本。
我们将Linux笔记本电脑和测试仪器连接到相邻LAN墙端口上的同一网络。 目前,所有IP地址,网关等都已配置,我可以从Linux笔记本电脑(Ubuntu 12.04)ping测试仪器。 我还发现我无法通过SSH连接到测试仪器的IP地址,但我必须打开socket 5025才能与仪器通信,向其发送SCPI命令,并运行测试脚本。 我不熟悉套接字编程,但我做了一些关于如何打开socket 5025的研究,并且无法找到在Linux终端上运行的特定命令。 是否需要使用特定的Linux命令来打开套接字并与测试仪器通信? 下一步是使用* IDN? 命令查看测试仪器是否会响应。 从那里,我相信我们可以运行测试脚本。 **我可以直接从Linux终端打开套接字5025,还是需要包含在测试脚本中?** 以上来自于谷歌翻译 以下为原文 Hi there, a colleague of mine wants to run an Expect (TCL) script on the 34972A test instrument from a Linux laptop. We have the Linux laptop and test instrument connected to the same network on adjacent LAN wall ports. Currently, all the IP addresses, gateways, etc are configured and I'm able to ping the test instrument from the Linux laptop (Ubuntu 12.04). I also discovered that I can't SSH to the test instrument's IP address, but I'll have to open socket 5025 in order to communicate with the instrument, send SCPI commands to it, and run test scripts. I'm not familiar with socket programming, but I did some research on how to open socket 5025 and was unable to find specific commands to run on the Linux terminal. Are there specific Linux commands I would need to use to open the socket and communicate with the test instrument? The next step would be to use the *IDN? command to see if the test instrument will respond. From there, I believe we could run the test script. **Can I open socket 5025 directly from the Linux terminal or would that need to be included within the test script?** |
|
相关推荐
1个回答
|
|
您可以直接在仪器上使用TCP / IP套接字(套接字5025是正确的端口)。
发送和接收仪器用户手册中的任何SCPI命令。 至于“你如何在Linux上使用TCL在套接字上执行TCP / IP”? 我没有任何经验,但快速谷歌搜索让它看起来很简单:[https://www.google.com/search?q=TCL+socket+programming&sourceid=ie7&rls=com.microsoft :en-us:IE-Address& ie =& oe =& rlz =]将以下页面作为第一个链接:[http://wiki.tcl.tk/15315] 以上来自于谷歌翻译 以下为原文 You can use the TCP/IP socket directly with the instrument (socket 5025 is the right port). Send and receive any of the SCPI commands in the instrument's user manual. As to "how do you use TCL on Linux to do TCP/IP on sockets"? I don't have any experience here, but a quick google search makes it seem pretty easy: [https://www.google.com/search?q=TCL+socket+programming&sourceid=ie7&rls=com.microsoft:en-us:IE-Address&ie=&oe=&rlz=] brings the following page up as the first link: [http://wiki.tcl.tk/15315] |
|
|
|
只有小组成员才能发言,加入小组>>
1287 浏览 0 评论
2375 浏览 1 评论
2194 浏览 1 评论
2064 浏览 5 评论
2951 浏览 3 评论
1113浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
753浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
927浏览 0评论
1288浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 13:03 , Processed in 1.564532 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号