完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我正在使用2端口E8362C,运行固件版本,A.09.42.22。
使用DCOM。 有没有办法优雅地检测固件是否正在运行? 假设我的程序中有一个PNA应用程序实例,如果PNA固件被用户关闭或者它崩溃了,我想快速而优雅地告诉它是否正在运行。 有办法吗? 谢谢你,安迪 以上来自于谷歌翻译 以下为原文 Hello, I am working with an 2-port E8362C, running firmware version, A.09.42.22. Using DCOM. Is there a way to gracefully detect if the firmware is running or not? Let's say I have an PNA application instance in my program, if the PNA firmware is closed by a user or if it crashes, I want to quickly and gracefully be able to tell if it is running or not. Is there a way? Thank you, Andy |
|
相关推荐
10个回答
|
|
由于对PNA的任何命令都要求PNA固件正在运行,因此您唯一的另一个选择是查看正在运行的任务以查看是否列出了“* 835x.exe *”。
手动,这将通过任务管理器完成,但有很多方法也可以通过编程方式执行此操作。 以上来自于谷歌翻译 以下为原文 Since any command to the PNA will require that the PNA firmware is running, your only other choice would be to look at the running tasks to see if "*835x.exe*" is listed. Manually, this would be done through the Task Manager but there are plenty of ways to also do this programmatically. |
|
|
|
胡bbs2 发表于 2018-10-18 17:40 在jvall的回复之后,这可能有点过头了,但我建议具体搜索的是“以编程方式确定进程是否正在运行”。编辑:bhokkan于2015年5月18日下午5:11 以上来自于谷歌翻译 以下为原文 This is probably overkill after jvall's reply, but what I was going to suggest to search on specifically was "programmatically determine if a process is running". Edited by: bhokkan on May 18, 2015 5:11 PM |
|
|
|
uwyywefwd 发表于 2018-10-18 17:58 哇,那个很酷。 而且,是的,这可能是矫枉过正的。 以上来自于谷歌翻译 以下为原文 Wow, that +was+ cool. And, yes, that probably was overkill. |
|
|
|
uwyywefwd 发表于 2018-10-18 17:58 让我谷歌那个给你? 不要再对我这样做了,我觉得受到了侵犯......现在想知道我的系统是否已被泄露。 以上来自于谷歌翻译 以下为原文 Let me google that for you? Don't ever do that to me again, I feel violated...and now wonder if my system has been compromised. |
|
|
|
我道歉:“让我谷歌,为你”。 我之前在这个论坛上看到过至少有一次被其他人使用过,这只是以一种有用的方式表达,但我现在意识到它的作用似乎很苛刻,所以我编辑了我的帖子以删除链接 。 以上来自于谷歌翻译 以下为原文 My apologies re: the "let me google that for you". I had seen that used by someone else at least once on this forum before, and it was meant only in a helpful manner but I do realize now that what it does seems heavy-handed and so I've edited my post to remove the link. |
|
|
|
uwyywefwd 发表于 2018-10-18 18:34 谢谢,bhokkan。 对不起,如果有点急躁的话。 和平.... 以上来自于谷歌翻译 以下为原文 Thanks, bhokkan. Sorry I if came off a little brash. Peace.... |
|
|
|
uwyywefwd 发表于 2018-10-18 18:34 - 有罪 - 但我只是对那个耐克家伙! 以上来自于谷歌翻译 以下为原文 - guilty - but I only to that to the Keysight guys! |
|
|
|
胡bbs2 发表于 2018-10-18 17:40 jvall,挑战是835.exe正在PNA上运行,而不是远程运行自定义软件并与PNA通信的主机PC。 这就是扭曲。 所以既然没有直截了当的答案,我会更进一步......谢谢,安迪 以上来自于谷歌翻译 以下为原文 jvall, the challenge is that 835.exe is running on the PNA, not the host PC which runs the custom software remotely and talks to the PNA. Therein lies the twist. So since there is no straightforward answer, I will look further... Thanks, Andy |
|
|
|
JST2006 发表于 2018-10-18 18:58 实际上,简单的答案就是在DCOM界面上进行函数调用。 如果PNA退出(或崩溃),那么您将收到错误。 错误是“远程服务器计算机不存在或不可用”。 我刚刚在DCOM上测试了这个,并且存在某种超时(因此你没有得到瞬时结果。看起来它大概是1分钟)。 以上来自于谷歌翻译 以下为原文 Actually, the way simple answer is to just make a function call on your DCOM interface. If the PNA has exited (or crashed), then you will get an error. The error is "The remote server machine does not exist or is not available". I just tested this over DCOM, and there is some sort of timeout (so you don't get an instantaneous result. It looks like it is about 1 minute). |
|
|
|
60user56 发表于 2018-10-18 19:17 嗨johanericsson,这正是我一直在做的,但它不是“优雅”,因为我的自定义软件在出现这种情况时会显示为挂起。 我正在寻找一种瞬间判断固件连接是否仍然良好的方法。 好处是,由于任何原因,固件很少脱机(变得不可用),但它确实偶尔会发生。 谢谢你,安迪 以上来自于谷歌翻译 以下为原文 Hi johanericsson, That is exactly what I have been doing, but it is not "graceful," because my custom software appears hung when this condition arises. An instantaneous way to tell if the firmware connection is still good is what I am looking for. The good thing is that it is rare that the firmware goes offline (becomes unavailable) for any reason, but alas it does happen from time to time. Thank you, Andy |
|
|
|
只有小组成员才能发言,加入小组>>
1285 浏览 0 评论
2373 浏览 1 评论
2192 浏览 1 评论
2064 浏览 5 评论
2948 浏览 3 评论
1108浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
752浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
924浏览 0评论
1287浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 12:30 , Processed in 1.682297 second(s), Total 96, Slave 80 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号