完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
您好,我们在一个应用中使用多个N5768A电源,通过查询电压输出电平,电流输出电平,输出状态和保护标志来监控仪器状态。
这些参数由相关的SCPI请求单独请求,通过LAN / VISA API发送到仪器。 100ms后读取对每个请求的响应。 这种通信方式似乎对我们的大多数电源都很好,因为我们能够在数小时/数天内监控它们而不会出现任何故障。 其中一个电源反应不同:几个小时后(4个小时似乎是平均值),我们的应用程序无法读取对SCPI请求之一的响应。 关闭/重新打开连接后,我们可以再次与仪器通信,但这种解决方法对于生产代码是不可接受的。 SCPI序列:viPrintf:MEAS:VOLT? 睡眠:100ms viScanf:MEAS:CURR? 睡眠:100ms viScanf:OUTP:STAT? 睡眠:100ms viScanf:STAT:QUES? 睡眠:100毫秒我已经通过文档查看了一些线索,现在还没找到。 你做 ? 谢谢,弗雷德里克 以上来自于谷歌翻译 以下为原文 Hello, We are using several N5768A power supplies in one application which monitors the instrument state by polling the voltage output level, current output level, output state and protect flags. These parameters are requested individually by the related SCPI request, sent to the instrument through the LAN/VISA API. The response to each request is read 100ms later. This way to communicate seems fine for most of our power supplies, as we are able to monitor them during hours/days without having any glitch. One of the power supply reacts differently however : after a few hours (4 hours seems the average), one response to one of the SCPI request is not read by our application. We are able to communicate again with the instrument after closing/reopening the connection but this workaround is not acceptable for production code. SCPI sequence : viPrintf : MEAS:VOLT? Sleep : 100ms viScanf : MEAS:CURR? Sleep : 100ms viScanf : OUTP:STAT? Sleep : 100ms viScanf : STAT:QUES? Sleep : 100ms I have looked through the documentation for some clue, and haven't find any for now. Do you ? Thanks, Frederic |
|
相关推荐
1个回答
|
|
|
嗨,这对我来说很奇怪。
响应的等待时间非常慷慨,所以不可能。 这是每次都在同一个单元上发生,还是每次运行时都是不同的单元? 您使用的是什么IO库? 你能检查一下你所拥有的单位的MAC地址吗? 谢谢! 以上来自于谷歌翻译 以下为原文 Hi, That seems strange to me. The wait time for the response is very generous so it cannot be that. Does this happen on the same unit every time or is it a different unit each time you run it? What IO Library are you using? Can you check the MAC addresses of the units that you have? Thanks! |
|
|
|
|
只有小组成员才能发言,加入小组>>
250 浏览 0 评论
1863 浏览 0 评论
2753 浏览 1 评论
2656 浏览 1 评论
2477 浏览 5 评论
1863浏览 0评论
431浏览 0评论
260浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-12 05:43 , Processed in 0.686843 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
7966