完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我无法确定如何使用GPIB接口将E3631A电源设置为远程模式。
我正在使用USB转GPIB适配器并使用参考文件Agilent.AgilentE36xx.Interop和相关文件(Ivi.Driver.Interop等)。 它最初在我运行我的程序时起作用(从IVI基础目录中的示例代码CS_Example1.cs获取的片段),但现在它处于本地模式,我无法将其恢复到远程模式。 我看到一个“DisableLocalControls”方法System类,但没有任何东西可以将它设置为远程模式。 以上来自于谷歌翻译 以下为原文 I am having difficulty determining how to set my E3631A power supply to remote mode using the GPIB interface. I am using a USB to GPIB adapter and am using reference files Agilent.AgilentE36xx.Interop and associated files (Ivi.Driver.Interop, etc). It worked initially when I ran my program (snippets acquired from sample code CS_Example1.cs in IVI foundation directory), but now it is in local mode and I can't get it back to remote mode. I see a "DisableLocalControls" method System class, but nothing to set it to remote mode. |
|
相关推荐
3个回答
|
|
如果您在GPIB中使用它,则不应随机将其从远程中取出。
你能在这里发布你的代码吗? 通过GPIB发送的任何命令都应该在切换到本地后将设备重新置于远程模式。 你是否因为这个而得到错误? 以上来自于谷歌翻译 以下为原文 If you are using it in GPIB nothing should randomly take it out of remote. Can you post your code here? Any command sent over GPIB should put the unit back into remote mode after it is switched to local. Are you getting errors because of this? |
|
|
|
张友芬1 发表于 2019-1-24 09:09 我决定通过RS232控制电源,但我仍然对如何使用USB-to-GPIB控制器(型号82357B)正确控制E3631A感到困惑。 我没有太多的编程经验但知道足以创建一些基本的应用程序。 有人可以解释IVI驱动程序的功能以及它们如何用于控制电源吗? 安捷伦提供的示例代码在Visual Studio中不起作用,这让我很困惑。 想法是与驾驶员“交谈”然后驾驶员与仪器进行对话吗? 所有这些IAgilent ......类在智能感知窗口中突然出现了什么? 更新:我目前正在阅读随Agilent IO库套件提供的帮助文档,这非常有用。 如果我有任何问题,我会回复更具体的问题。 它开始对我有意义了...编辑:mossman于2014年1月30日上午7:00编辑:mossman于2014年1月30日上午7:01 以上来自于谷歌翻译 以下为原文 I decided to control the power supply over RS232 instead, but I am still confused as to how to control the E3631A properly using the USB-to-GPIB controller (model 82357B). I don't have an awful lot of programming experience but know enough to create some basic applications. Can someone explain the function of the IVI drivers and how they are used to control the power supply? The example code provided by Agilent is not working in Visual Studio and it is quite confusing to me. Is the idea to "talk" to the driver and then the driver talks to the instrument? And what the heck are all of these IAgilent... classes popping up in the intellisense window? Update: I'm currently reading through the help documentation provided with the Agilent IO Library suite and it is quite helpful. I'll post back with more specific questions if I have any. It's beginning to make sense to me... Edited by: mossman on Jan 30, 2014 7:00 AM Edited by: mossman on Jan 30, 2014 7:01 AM |
|
|
|
hvyweyrrwwrr 发表于 2019-1-24 09:25 我的代码和仪器通信现在运行得很好。 我现在唯一的问题是我不断收到错误-410(查询中断)。 当我在我的代码中添加了一个后台工作器时,就开始发生了这种情况,每隔500毫秒查询一次电源以测量电压和电流(MEAS:VOLT:DC?,MEAS:CURR:DC?)。 单独的backgroundworker工作正常,但是当我点击我的应用按钮来改变电压或电流时,我会得到错误。 我的假设是,由于按下按钮,后台工作人员在查询仪器时正在查询另一个查询。 防止这种情况发生的最佳方法是什么? 有没有办法在发送下一个查询之前清除电源的输出缓冲区,这样它就不会抱怨? 在发送查询之前,我是否应该使用* OPC命令(操作完成)检查状态寄存器以确保没有冲突? 仅供参考,我的后台工作程序中的while循环每500毫秒执行一次。 增加此间隔似乎不会对冲突有所帮助。 我在表单中添加了一个列表框来跟踪发送到电源的命令。 在没有首先执行读取的情况下发送命令时发生错误。 例如,MEAS:CURR:DC? 由我的Do_Work循环发送,当我手动单击我的SetVolt按钮时,发送命令VOLT。 由于缓冲区包含数据,并且在发送另一个命令之前我没有读取它,因此出现错误。 如何在保持电压和电流设置的同时清除读取缓冲区? 我试过“FlushRead()”,但这不起作用。编辑:mossman于2014年1月31日上午8:08 以上来自于谷歌翻译 以下为原文 My code and instrument communication is working pretty well now. The only issue I am having now is I keep getting error -410 (query interrupted). This started happening when I added a backgroundworker to my code, which queries the power supply every 500 ms to measure the voltage and current (MEAS:VOLT:DC?, MEAS:CURR:DC?). The backgroundworker alone works fine, but often times when I click my apply button to change the voltage or current, I will get the error. My assumption is that the backgroundworker is in the middle of querying the instrument when it gets another query because of my button press. What is the best way to prevent this from happening? Is there a way to clear the power supply's output buffer just prior to sending the next query so it doesn't complain? Should I be using the *OPC command (operation complete) to check the status register before sending a query to ensure there are no conflicts? FYI, the while loop in my background worker executes every 500 ms. Increasing this interval does not seem to help with the conflicts. I added a list box to my form to track the command being sent to the power supply. The error is occurring when a command is being sent without a read being performed first. For instance, MEAS:CURR:DC? is sent by my Do_Work loop and when I manually click my SetVolt button the command VOLT is sent. Since the buffer contains data and I did not read it before sending another command, I am getting an error. How do I clear the read buffer while retaining my voltage and current settings? I tried "FlushRead()", but that doesn't work. Edited by: mossman on Jan 31, 2014 8:08 AM |
|
|
|
只有小组成员才能发言,加入小组>>
1288 浏览 0 评论
2375 浏览 1 评论
2194 浏览 1 评论
2064 浏览 5 评论
2951 浏览 3 评论
1115浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
754浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
928浏览 0评论
1288浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 21:35 , Processed in 1.461260 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号