完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个DSO3034A,我想用一个简单的tcp套接字和Scpi-raw远程控制它。
我实际上可以毫无问题地执行scpi命令,我甚至可以使用“:SYST:SET?”来请求学习字符串。 但问题是我似乎无法将其设置回来。 在文档中提到我应该用“:SYST:SET”将其发回,然后在数据之后。 我尝试过的一个例子:SYST:SET#800083042 expandMode 0,“ground”wfmAntialiasing ....更多数据......看起来很简单,但直到现在我都没有成功。 有人可以帮我这个,说我做错了什么? 我使用TcpClient和c#来处理套接字通信。 谢谢,彼得 以上来自于谷歌翻译 以下为原文 I have a DSO3034A an I want to remote control it using a simple tcp socket and Scpi-raw. I can actually do execute scpi commands without a problem, I can even requests the learn string using ":SYST:SET?". But the problem is I don't seem to be able to set it back. In the documentation it is mentioned that I should send it back with ":SYST:SET " and after that following the data. One of the examples I tried : :SYST:SET #800083042 expandMode 0,"ground" wfmAntialiasing .... more data .... It seemed straight forward but I have no success with it until now. Can someone help me with this, say me what I do wrong ? I use TcpClient with c# to handle the socket communication. Thank, Peter |
|
相关推荐
2个回答
|
|
没有看代码就不确定有什么问题,但附带的是我的实现。
在我的示例中,我首先将输出:SYST:SETUP保存到文件中,然后使用程序将其读回,就像编程指南中的示例一样。 如果安装了Keysight Connection Expert,则可以使用其IOMonitor查看程序实际发送的内容并调试问题。 以上来自于谷歌翻译 以下为原文 Not sure what is wrong without looking at the code, but attached is my implementation. In my example, I saved the output of :SYST:SETUP into a file first and then read it back using the program, just like the example in the programming guide. If you have the Keysight Connection Expert installed, you can use its IOMonitor to see what your program actually sent and debug the problem. 附件
|
|
|
|
有一个错误,其中ASCII块的标头中的字节数(在您的示例中为“#800083042”)太大了几个字节。
这个bug至少是2.37,也可能是2.35。 它似乎在2.38中得到纠正。 如果你发回的字符串是作用域逐字发送的,那么字节数就会错误。 以上来自于谷歌翻译 以下为原文 There is a bug where the byte count in the header for ASCII blocks ("#800083042" in your example) is too big by a few bytes. This bug is in at least 2.37, and probably 2.35 as well. It appears to be corrected in 2.38. If you're sending back the string the scope sent you verbatim, it will have the wrong byte count. |
|
|
|
只有小组成员才能发言,加入小组>>
1213 浏览 0 评论
2344 浏览 1 评论
2147 浏览 1 评论
2017 浏览 5 评论
2897 浏览 3 评论
948浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
690浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
793浏览 0评论
1213浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-17 00:17 , Processed in 1.309564 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号