完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我试图在外部VB可执行文件中使用SCIPI命令来控制PNA。
每当我向PNA发出命令(如平均值)时,控件都会返回程序,而不会等到平均完成。 在向PNA发出命令后,我通过在控制端使用睡眠命令进行了绑定。 我试过“* WAI?” 命令和控件仍然不等待是否有我遗漏的东西? 以上来自于谷歌翻译 以下为原文 I am trying to use SCIPI commands with in an external VB executable to control the PNA. Whenever I issue commands to the PNA (like averageing) the controls are returned back to the program without waiting until the averaging is complete. I have bandaided this by using sleep commands on the control side after I issue the command to the PNA. I have tried "*WAI?" command and the control still does not wait Is there something I am missing? |
|
相关推荐
1个回答
|
|
|
谢谢,我已经尝试过您的实施。
但是,当我尝试回读OPC的状态时,visual basic程序会挂起。 Dim OPCValue as Integer = -80 ... viPrintf(viPNA,“* OPC?”& Char(10),0)viScanf(viPNA,“%hd”,OPCValue)如果我将格式更改为“”,我将不会挂起 %hl“,但变量OPCValue的值没有改变。 以上来自于谷歌翻译 以下为原文 Thanks I have tried your implementation. However, when I try to read back the status of the OPC the visual basic program hangs. Dim OPCValue as Integer = -80 ... viPrintf(viPNA,"*OPC?" & Char(10),0) viScanf(viPNA,"%hd",OPCValue) I will not hang if I change the format to "%hl", but the value of the variable OPCValue has not changed. |
|
|
|
|
只有小组成员才能发言,加入小组>>
1844 浏览 0 评论
2739 浏览 1 评论
2640 浏览 1 评论
2449 浏览 5 评论
3458 浏览 3 评论
1845浏览 0评论
417浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 06:25 , Processed in 0.556282 second(s), Total 73, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1415