完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,我正在使用VEE 9.0通过以太网驱动6000系列MSO示波器。我的应用非常简单:从内存中调用配置(所以我可以在'示波器上手动调整触发等),然后DIGItiZE然后保存结果波形
从POD1到u***棒上的bin文件。 然后它循环回到DIGITIZE。我需要在无人值守的情况下连续几天运行,以防特定事件触发并保存新文件。我的第一个问题是直接IO在几秒钟之后超时和DIGITIZE 然后失败了,所以我找到了DIrect IO超时的位置并将其设置为5,000,000s。 但是我让这个程序一夜之间运行,它仍然超时。 这个超时是否存在总体最大值?我的第二个问题是程序现在无法轻松停止,如果单击菜单栏中的停止按钮,它只显示一个沙漏。我怀疑它是单线程等待套接字 。我可以一次解决这两个问题 - 是否有一种方法可以在没有弹出框的情况下处理VEE中的套接字超时并发生错误? 然后我可以重新进入循环。 我怀疑,如果我这样做,并且超时被缩短,我可以手动停止程序,因为它会更频繁地检查整体运行状态。谢谢, - Adam 以上来自于谷歌翻译 以下为原文 Hi I'm using VEE 9.0 to drive a 6000 series MSO scope via ethernet. My application is really simple: recall config from memory (so I can fiddle with the triggering etc manually on the 'scope), then DIGITIZE then save the resulting waveform from POD1 to a bin file on the u*** stick. Then it loops around back to the DIGITIZE. I need to leave this running unattended for days on end in case the specific event triggers and new files get saved. My first problem was that the Direct IO was timing out after a few seconds and the DIGITIZE was then failing, so I found where the DIrect IO timeout was and set that to 5,000,000s. However I let this program run overnight and it still timed out. Is there an overall maximum on this timeout? My second problem is that the program now cannot be stopped easily, it just displays an hourglass if you click on the stop button in the menu bar. I suspect that it's single-threadedly waiting on a socket. Can I solve both problems at once - is there a way of handling the socket timeout within VEE without a pop-up box and an error happening? I can then re-enter my loop. I suspect that if I did this, and the timeout were shortened, I could then stop the program manually, as it would check the overall run state more often. Thanks, - Adam |
|
相关推荐
1个回答
|
|
|
也许有一种不同的方法。
而不是等待并冒着超时的风险,是否有一个寄存器或标志,您可以定期轮询以查看范围是否被触发? - Bill 以上来自于谷歌翻译 以下为原文 Maybe a different approach is in order. Instead of waiting and risking a timeout, is there a register or flag that you can poll periodically to see if the scope was triggered? -Bill |
|
|
|
|
只有小组成员才能发言,加入小组>>
1846 浏览 0 评论
2740 浏览 1 评论
2641 浏览 1 评论
2451 浏览 5 评论
3461 浏览 3 评论
1847浏览 0评论
420浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-3 06:17 , Processed in 1.746571 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1379