1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我希望你们中的一些人可以帮助我解决我遇到的一个小问题。我正在尝试在VEE 7.5中使用带有8753D,5810A和直接IO的OPC命令,但是无法让它运行,VEE要么是超时还是锁定
我必须使用Ctrl,Alt和Del来杀死它,如果我只使用WRITE TEXT“PRES”EOL并且有些延迟,它就可以工作.8753D有固件版本5.38.我试过以下内容:1。 写作“OPC; PRES”EOL2。 WRITE TEXT“OPC; PRES”EOL WAIT SPOLL:0x1 SET不确定这个命令到底是什么3。 WRITE TEXT“OPC; PRES”EOL READ TEXT DONE REAL64 1.写文本“OPC?; PRES”EOL2。 WRITE TEXT“OPC?; PRES”EOL WAIT SPOLL:0x1 SET不确定这个命令到底是什么3。 WRITE TEXT“OPC?; PRES”EOL READ TEXT DONE REAL64关于我做错了什么的建议?我想在我的程序中使用OPC等待“足够长”直到分析仪准备就绪,我知道我可以插入延迟但是 我想使用我认为特别为此目的制作的命令。 彼得,先谢谢你 以上来自于谷歌翻译 以下为原文 Hi, I hope some of you can help me with a small problem I have. I am trying to use the OPC command in VEE 7.5 with a 8753D, 5810A and direct IO but cannot get it running, VEE is either giving a timeout or locking up and I have to use Ctrl, Alt and Del to kill it, it works if I only use WRITE TEXT "PRES" EOL and some delay. The 8753D has firmware release 5.38. I have tried the following: 1. WRITE TEXT "OPC;PRES" EOL 2. WRITE TEXT "OPC;PRES" EOL WAIT SPOLL:0x1 SET Not sure exactly what this command does 3. WRITE TEXT "OPC;PRES" EOL READ TEXT DONE REAL64 1. WRITE TEXT "OPC?;PRES" EOL 2. WRITE TEXT "OPC?;PRES" EOL WAIT SPOLL:0x1 SET Not sure exactly what this command does 3. WRITE TEXT "OPC?;PRES" EOL READ TEXT DONE REAL64 Any advice on what I am doing wrong ? I want to use OPC in my program to wait "long enough" until the analyzer is ready, I know I could insert a delay but I would like to use the command which, I believe, is made especially for this purpose. Thanks in advance, Peter |
|
相关推荐
1个回答
|
|
嗨彼得,我没有参考乐器的编程指南,但我想你也可以试试这个:1。
用WRITE“* OPC?”创建一个DIRECT I / O对象。 和READ STRING / INT x.2。 将错误输出引脚添加到DIRECT I / O(这将防止DIRECT I / O超时)3。 将DIRECT I / O x输出引脚连接到IF对象的输入引脚A,检查输入是否等于“+1”(通常在操作完成时,OPC将返回“+1”)4。 将BREAK对象连接到IF然后输出引脚。 将UNTIL BREAK连接到DIRECT I / O对象6的输入序列引脚。 将操作完成后您希望运行的任何其他对象连接到UNTIL BREAK对象的输出序列引脚。希望这有帮助! :) 以上来自于谷歌翻译 以下为原文 Hi Peter, I did not refer to the instrument's programming guide but I suppose you could also try this: 1. Create a DIRECT I/O object with WRITE "*OPC?" and READ STRING/INT x. 2. Add an Error Output pin to the DIRECT I/O (this will prevent the DIRECT I/O from time out) 3. Connect the DIRECT I/O x output pin to the input pin A of an IF object that checks if the input equals to "+1" (usually when operation is completed, OPC will return "+1") 4. Connect a BREAK object to the IF then output pin. 5. Connect UNTIL BREAK to the input sequence pin of the DIRECT I/O object 6. Connect any other objects that you wish to run after operation is completed to the output sequence pin of the UNTIL BREAK object. Hope this helps! :) |
|
|
|
只有小组成员才能发言,加入小组>>
1283 浏览 0 评论
2371 浏览 1 评论
2189 浏览 1 评论
2062 浏览 5 评论
2946 浏览 3 评论
1104浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
751浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
922浏览 0评论
1284浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 19:51 , Processed in 1.356672 second(s), Total 77, Slave 61 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号