完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个带E4426B的测试夹具。
在测试结束时,软件试图通过预设仪器来消毒仪器,然后将当前状态保存到可通过“* SAV x,y”写入的所有存储器位置。 循环工作到一定程度,但最终仪器会响应错误并连续显示前显示屏上的“L”图标和底部的“远程预设”信息。 此时它不会响应任何更多的远程命令,我必须循环上电或按LOCAL,然后按PRESET,此时需要大约3分钟才能完成预设。 此时“L”图标仍然存在,并且发送到仪器的下一个GPIB命令导致它在仪器错误队列中报告-113错误(未定义的标题)。我启动了NI间谍以查看发生了什么, 并发现错误发生在循环中的同一点 - 在这种情况下为“* SAV 6,2”。 来自NI Spy:“> 948.发送(0,0x0017,”* SAV 6,2“,8(0x8),NLend(0,0x01))>进程ID:0x00000520线程ID:0x00000518> ibsta:0xc168 iberr:6 ibcntl:2(0x2)“这是来自仪器驱动程序的代码:int CHP_E4426b :: Erase(){if((m_StatusCode = Initialize())!= GPIB_SUCCESS)//基本上只发送”* RST“返回m_StatusCode; m_SaveState =“* SAV%d,%d”; for(int i = 0; i for(int j = 0; j {sprintf(m_CmdString,m_SaveState,j,i); if((m_StatusCode = Send(m_CmdString,strlen(m_CmdString)))!= GPIB_SUCCESS)return m_StatusCode; 返回GPIB_SUCCESS;}我尝试在内部循环结束时放置一个小的Sleep()延迟(10-20 ms),令我惊讶的是它导致错误显示在早期而不是更晚.10 ms导致循环到 在44和20毫秒时出错甚至更早。任何人都可以提供一些故障排除建议吗?谢谢。 以上来自于谷歌翻译 以下为原文 I have a test fixture with an E4426B. At the end of testing, the software is attempting to sanitize the instrument by presetting it and then saving the current state to all of the memory locations writable via "*SAV x,y". The loop works to a point, but eventually the instrument responds with an error and continuously displays the "L" icon on the front display and a "Remote preset" message at the bottom. At that point it won't respond to any more remote commands and I have to either cycle power or press LOCAL, then PRESET at which point it takes about 3 minutes to finish presetting. At that point the "L" icon is still present and and the next GPIB command sent to the instrument causes it to report a -113 error (undefined header) in the instrument error queue. I fired up NI spy to see what was happening, and found that the error was happening at the same point in the loop - "*SAV 6,2" in this case. From NI Spy: " Here's the code from the instrument driver: int CHP_E4426b::Erase() I tried putting a small Sleep() delay (10-20 ms) at the end of the inner loop, and to my surprise it caused the error to show up earlier rather than later. 10 ms caused the loop to error out at 44,1 and 20 ms was even sooner. Can anyone offer some troubleshooting suggestions? Thanks. |
|
相关推荐
2个回答
|
|
Hello -Undefined头语法错误,客户是由于命令的标题在语法上是正确的,但是对于此特定设备未定义。
例如,* XYZ未定义任何设备。 你能检查错误队列的完整错误描述吗? 大多数情况下,我看到命令用于SAV寄存器的格式如下:“* SAV 06,2”,寄存器为2位格式。 你能尝试一下吗? 谢谢。 以上来自于谷歌翻译 以下为原文 Hello - Undefined header syntax error that customer is due to the header of the command is syntactically correct, but it is undefined for this specific device. For example, *XYZ is not defined for any device. Could you check the full error description on the error queue? Mostly, I see that the command use to SAV register is in the following format, "*SAV 06,2" with the register in 2 digit format. Can you give this a try? Thanks. |
|
|
|
我会尝试一下,但我没有希望。
只有在我从前面板预设仪器并在* SAV 6,2命令将其锁定后发送新命令(任何命令,例如* RST)后才会发生-113错误。 在* SAV 6,2锁定系统之前,它正确响应了几百个之前的“* SAV x,y”命令。“Hello -Undefined头语法错误,客户是由于命令的标题在语法上是正确的, 但是对于这个特定的设备没有定义。例如,没有为任何设备定义* XYZ。你能检查错误队列的完整错误描述吗?大多数情况下,我看到命令用于SAV寄存器的格式如下, “* SAV 06,2”,寄存器为2位数格式。你能试一试吗?谢谢。“ 以上来自于谷歌翻译 以下为原文 I'll give that a try, but I'm not hopeful. The -113 error occurs only after I preset the instrument from the front panel and send a new command (any command, *RST for example) after the *SAV 6,2 command locks it up. Previous to *SAV 6,2 locking up the system, it responds correctly a couple of hundred previous "*SAV x,y" commands. " |
|
|
|
只有小组成员才能发言,加入小组>>
1231 浏览 0 评论
2351 浏览 1 评论
2161 浏览 1 评论
2026 浏览 5 评论
2910 浏览 3 评论
976浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
709浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
809浏览 0评论
1234浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 17:14 , Processed in 1.429454 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号