嗨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.
嗨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.
举报