完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨用于N6705B的14585A配套软件可以非常快速地从设备中提取数据,比通过SCPI快得多。
它使用什么协议,LXI? 我可以访问这个吗? 我可以获取源代码,以便将其添加到语言X中吗? 谢谢德里克 以上来自于谷歌翻译 以下为原文 Hi The 14585A companion software for the N6705B can extract data from the device quite quickly, significantly quicker than via SCPI. What protocol is it using, LXI? Can I get access to this? Can I get source so I can add it to language X? Thanks Derek |
|
相关推荐
6个回答
|
|
嗨Derek,该软件使用多种方式与仪器进行通信。
最快的方法是使用LAN套接字,这可能就是您正在使用的。 你有权访问它。 您需要为套接字通信提供自己的函数。 使它更快的是你跳过IO层。 有关如何通过插座连接仪器的详细信息,请参见第55页的手册:“安捷伦仪器已标准化使用端口5025进行SCPI插槽服务。此端口上的数据套接字可用于发送和接收ASCII / SCPI命令 所有命令都必须以换行消息的换行符终止。所有查询响应也将以换行符终止。套接字编程接口也允许控制套接字连接。可以使用控制套接字,查询和查询响应。 通过客户端发送设备清除和接收服务请求。与使用固定端口号的数据套接字不同,控制套接字的端口号不同,必须通过将以下SCPI查询发送到数据套接字来获取:SYSTem: COMMunicate:TCPip:CONTrol?获取端口号后,可以打开控制套接字连接。与数据套接字一样,控制套接字的所有命令都必须以换行符终止,并且所有查询都是 控制套接字上返回的响应将以换行符终止。 要清除设备,请将字符串“DCL”发送到控制插槽。 当DC Power Analyzer完成设备清除后,它会将字符串“DCL”回送到控制插座。 使用服务请求启用寄存器为控制套接字启用服务请求。 启用服务请求后,客户端程序将侦听控制连接。 当SRQ变为真时,仪器将向客户端发送字符串“SRQ + nn”。 “nn”是状态字节值,客户端可以使用它来确定服务请求的来源。“如果您有任何其他问题,请告诉我。 以上来自于谷歌翻译 以下为原文 Hi Derek, The software uses a variety of ways to communicate with the instrument. The quickest way is to use LAN sockets and that may be what you are using. You do have access to this. You would need to provide your own functions for the socket communication. The thing that makes it faster is that you kind of skip the IO layer. Details on how to connect with the instrument via sockets are documented in the manual on page 55: "Agilent instruments have standardized on using port 5025 for SCPI socket services. A data socket on this port can be used to send and receive ASCII/SCPI commands, queries, and query responses. All commands must be terminated with a newline for the message to be parsed. All query responses will also be terminated with a newline. The socket programming interface also allows a control socket connection. The control socket can be used by a client to send device clear and to receive service requests. Unlike the data socket, which uses a fixed port number, the port number for a control socket varies and must be obtained by sending the following SCPI query to the data socket: SYSTem:COMMunicate:TCPip:CONTrol? After the port number is obtained, a control socket connection can be opened. As with the data socket, all commands to the control socket must be terminated with a newline, and all query responses returned on the control socket will be terminated with a newline. To send a device clear, send the string “DCL” to the control socket. When the DC Power Analyzer has finished performing the device clear it echoes the string “DCL” back to the control socket. Service requests are enabled for control sockets using the Service Request Enable register. Once service requests have been enabled, the client program listens on the control connection. When SRQ goes true the instrument will send the string “SRQ +nn” to the client. The “nn” is the status byte value, which the client can use to determine the source of the service request." Let me know if you have any other questions. |
|
|
|
嗨MattC我知道自从我访问这个主题已经有一段时间了,但我们设法从数据记录器中获取足够的时间数据。 但是我需要捕获范围数据并在我的脚本中使用它,似乎没有任何范围命令? 我希望能够:设置范围以触发等待跟踪被捕获将跟踪数据保存到文件中将文件读入PC进行处理我可以看到如何做除了告诉范围保存/导出之外的所有事情 数据到文件。 任何提示将不胜感激。 十二月 以上来自于谷歌翻译 以下为原文 Hi MattC I know its been a while since I visited this subject but we managed to get the data from the data logger in sufficient time. However I need to capture the scope data and use that in my scripts, there doesn't seem to be any scope commands? I want to be able to: Setup the scope to trigger Wait for trace to be captured Save the trace data to a file read the file into the PC for processing I can see how to do everything apart from tell the scope to save/export the data to a file. Any hints would be appreciated. Dec |
|
|
|
wangcong12138 发表于 2018-12-18 09:03 我求助于嗅探APP正在与N6705通话的局域网连接。 虽然我看到应用程序查询tcpip控制端口,但我没有看到任何来自它的通信。 我已经实现了这个文件中发现的所有内容,我唯一无法工作的是触发器。 我看到app pols条件reg:stat:oper:cond? (@ 1)+33然后抓取数据。 我从未见过这种变化 以上来自于谷歌翻译 以下为原文 I resorted to sniffing the LAN connection that the APP was talking to the N6705 on. Although I see the app query the tcpip control port I don't see any comms to/from it. I've implemented all that transpires in this file, the only thing that I can't seem to get working is the trigger. I see the app pols condition reg :stat:oper:cond? (@1) +33 then grabs the data. I never see this change 附件
|
|
|
|
wangcong12138 发表于 2018-12-18 09:10 嗨,我们并没有真正拥有“范围”命令。 我们所拥有的是您可以访问的数字化仪。 您可以将数字化仪设置为最多可获取512 K点的数据,并将其作为值数组读回。 这基本上是范围正在做的事情。 它采用数字化数据并绘制它。 我不知道你用什么来生成你包含的文件。 你能告诉我所以我可以打开它吗? 以上来自于谷歌翻译 以下为原文 HI, We do not really have "scope" commands per say. What we do have is a digitizer that you can access. You can set the digitizer to take up to 512 Kpoints of data and read that back as an array of values. This is essentially what the scope is doing. It takes the digitized data and plots it. I am not sure what you used to generate the file that you included. Can you let me know so I can open it? |
|
|
|
张友芬1 发表于 2018-12-18 09:20 嗨Matt这个文件来自wireshark,是应用程序和N6705B之间对话的tcp跟踪。 我以为它是以纯文本保存的,因为那是我当时用来查看它的选项。 我将在星期一重做这个并将其作为文本附上。 查看跟踪应用程序执行您建议的内容,它捕获当前阵列并显示它。 德里克 以上来自于谷歌翻译 以下为原文 hi Matt The file is from wireshark, a tcp trace of the conversation between the app and the N6705B. I assumed it was saved in pure text as that was the option I was using to view it a at the time. I'll redo this on Monday and attach it as text. Looking at the trace the app does what you suggest in that it capture the current array and displays that. Derek |
|
|
|
张友芬1 发表于 2018-12-18 09:20 嗨MattC我已经看了我附加的文件,它通常是文本,虽然跟踪数据是二进制的。 如果你有一个像样的文本编辑器,文本垫或科莫多等,发送的命令和响应应该是清楚的。德里克 以上来自于谷歌翻译 以下为原文 Hi MattC I've taken a look at the file I attached and it is generally text, although the trace data is binary. The commands sent and the responses should be clear if you have a decent text editor, text pad or komodo etc. Derek |
|
|
|
只有小组成员才能发言,加入小组>>
1271 浏览 0 评论
2371 浏览 1 评论
2187 浏览 1 评论
2061 浏览 5 评论
2943 浏览 3 评论
1083浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
744浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
903浏览 0评论
1271浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 20:41 , Processed in 1.453874 second(s), Total 88, Slave 71 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号