完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我正在尝试使用VEE控制e4980a LCR仪表。
我必须向仪器发送一系列命令(大约200个)。 我使用了状态字节的OPC位并在继续之前尝试了串行轮询,但有些人似乎仍然会快速连续地向仪器发送更多命令。 现在,我也尝试使用另一个特定于我试图执行的操作的寄存器,但错误仍然存在。 我有效地做了这个:: STAT:OPER:ENAB //之前我使用了* ESE 1即操作完成bitfor循环* CLS * WAI:CORR:SPOTn:SHOR - 这是我试图执行的命令//之前我 此处还包括* OPC串行轮询32 //之前我屏蔽128end循环,循环执行约50次,但只执行了10个循环的操作,然后弹出错误。 程序停止,但仪器继续进行进一步测量。 以上来自于谷歌翻译 以下为原文 Hello, I am trying to control e4980a LCR meter using VEE. I have to send a series of commands (about 200) to the instrument. I used the OPC bit of the status byte and tried a serial poll before continuing,but it some how seems to still send more commands to the instrument in quick succession. Now, I also tried using another register which is specific to the operation Im trying to perform but the error is still there. I am effectively doing this: :STAT:OPER:ENAB // earlier I used *ESE 1 i.e. the operation complete bit for loop *CLS *WAI :CORR:SPOTn:SHOR -- this is the command im trying to execute //earlier I had a *OPC also included here Serial poll 32 //earlier i masked 128 end loop the loop execute about 50 times but only 10 cycles of operations have been performed and then the error pops up. The program stops but the instrument continues to make further measurements. |
|
相关推荐
6个回答
|
|
我没有那个乐器,所以我对你发送的命令没有帮助。但是如果你正在寻找数据来回到VEE,你可能需要在每个命令之间加一个延迟来让它
仪器在下一个命令之前执行一个命令。 以上来自于谷歌翻译 以下为原文 I don't have that instrument, so I'm not a help on the commands you're sending. But if you're looking for data to come back to VEE, you might need to put a delay between each commands to let the instrument finish executing one command before the next one. |
|
|
|
嗨,是的,延迟可以解决问题,但是总是不可能选择正确的延迟。
如果你完成它,那么程序变得非常慢,特别是因为我的程序需要进行多次迭代.Operation Complete命令应该只是这样做并且它在大多数安捷伦仪器中很常见但是它似乎并没有在一个Im中工作 usingInd尝试使用的命令不必返回任何数据。 以上来自于谷歌翻译 以下为原文 Hi, Yes, delay would solve the problem, but then choosing the right delay is always not possible. if you over do it, then the program becomes very slow especially since my program needs to make many iterations. The OPeration Complete command is supposed to do just that and its common in most agilent instruments but it doesnt seem to be working in the one Im using And the command im trying to use does not have to return any data. |
|
|
|
哎呀,我刚读你的命令不会返回任何值。
在我发送命令A和B之前我遇到过一种情况。发送命令A后,我需要大约5秒的延迟才能让仪器完成操作,然后才发送命令B. -mk 以上来自于谷歌翻译 以下为原文 Oops, I just read your command doesn't return any value. I'd encounter a situation before where I am sending command A and B. After sending command A, I need a delay of around 5s for the instrument to complete the operation, then only sending command B. -mk |
|
|
|
谢谢..我想让程序没有任何延迟,最好从仪器本身得到一些确认,因为这可能会使它更快。我也得到错误410 - 查询中断。
我可以附加一个4-5元素的小VEE程序,突出显示我收到此错误的地方。 你们中的任何人都可以调试吗? 我试图用一个状态位的掩码进行串行轮询。 以上来自于谷歌翻译 以下为原文 thanks..I would like to make the program with out any delay and preferably get some confirmation from the instrument itself since this might make it faster. I am also getting error 410 - query interrupted. I could attach a small 4-5 element VEE program highlighting the place where I get this error. could any of you debug it then? I am trying to do a serial poll with a mask for one of the status bits. |
|
|
|
问题解决了吗?
如果是这样,我很想知道如何。 以上来自于谷歌翻译 以下为原文 Is the problem solved? If so, I am curious to know how to. |
|
|
|
嗨,超时问题已经解决了。
我通过一个运行201次的for循环向LCR仪表发出命令。 LCR仪表无法赶上VEE。 所以我使用串行轮询检查特定状态寄存器中的操作完成位,因此错误现在消失了。 我也尝试使用延迟,这也解决了它。现在,为了清除状态位,一些如何,* CLS不起作用(虽然它也应该清除相关位)。 我不得不查询特定的状态寄存器来清除它。 有什么建议么? 以上来自于谷歌翻译 以下为原文 Hi, the timeout problem has been solved. I was issuing commands to the LCR meter through a for loop that runs 201 times. The LCR meter was not able to catch up with VEE. So I used serial polling to check the operation complete bit in a specific status register and thus the error is now gone. I also tried to use a delay and that solved it too.. Now, Inorder to clear the status bits, some how, *CLS doesn't work ( though it is supposed to clear the relevant bits too). I am having to query the particular status register to clear it. any suggestions? |
|
|
|
只有小组成员才能发言,加入小组>>
1279 浏览 0 评论
2371 浏览 1 评论
2187 浏览 1 评论
2061 浏览 5 评论
2945 浏览 3 评论
1099浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
748浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
917浏览 0评论
1279浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 16:58 , Processed in 1.256007 second(s), Total 56, Slave 50 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号