完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨我有一个关于在PC和MXG N5182之间建立GPIB连接的问题我正在考虑将多个波形文件上传到MXG。
我只是检查API参考,解释了在MXG和PC之间打开GPIB端口的方法(我使用的是VB.NET)我只是按照API示例例如,Dim Bin1Wav As New CCWAPI.AgtPBProject Bin1Wav.SignalGenerator.SetConnectionGPIB(0,19, 0)但是,我得到连接错误,它说“AgtPulseBuilding.Engine.Exception.InvalidSGException:没有检测到信号发生器连接:..”我不确定为什么会发生这种情况是因为当我执行代码时,MXG进入远程 模式。 这意味着VB.NET代码和SetConnectionGPIB函数正在MXG和Desktop之间建立GPIB连接。 我附上了错误的屏幕截图有人知道如何解决这个问题吗? 谢谢 以上来自于谷歌翻译 以下为原文 Hi I have a question about establishing GPIB connection between PC and MXG N5182 I am thinking to uploading multiple wave form files to MXG. I just check API references which explain the way to open GPIB port between MXG and PC( I am using VB.NET) I simply follow API example For example, Dim Bin1Wav As New CCWAPI.AgtPBProject Bin1Wav.SignalGenerator.SetConnectionGPIB(0, 19, 0) However, I am getting connection error it says " AgtPulseBuilding.Engine.Exception.InvalidSGException: No Signal Generator Connection Detected:.." I am not really sure why this happen this is because when I execute code, MXG is getting into remote mode. Which means that VB.NET code and SetConnectionGPIB function is establishing GPIB connection between MXG and Desktop. I have attached screenshot of error Do anybody know how to fix this issue ? thanks 附件
|
|
相关推荐
1个回答
|
|
VB.net,我通常会开始这样的程序,我假设您安装了Agilent I / O库?
www.agilent.com/find/iosuite''''''''''''''''''''''''''' “”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“”“” ''''''''''''''''''''''''''Imp Imp Imp Imp Imp In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In In :INSTR“Dim oRm As New ResourceManagerClass()Dim FGEN As New FormattedIO488Class()'打开仪器的会话。 FGEN.IO = oRm.Open(instAddress,AccessMode.NO_LOCK,10000,“”)FGEN.IO.Timeout = 10000'查询Idendity字符串和报告。 FGEN.WriteString(“* IDN?”,True)Dim strResult As String = FGEN.ReadString()Console.WriteLine(“Instrument Identity String:”+ strResult)'清除并重置仪器FGEN.WriteString(“* CLS; * RST ; * OPC?“,True)FGEN.ReadString() 以上来自于谷歌翻译 以下为原文 VB.net, I usually start out my programs like this, I assume you have Agilent I/O libraries installed? www.agilent.com/find/iosuite '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Imports System.Text Imports Ivi.Visa.Interop Dim instAddress As String = "GPIB0::22::INSTR" Dim oRm As New ResourceManagerClass() Dim FGEN As New FormattedIO488Class() 'Open session for instrument. FGEN.IO = oRm.Open(instAddress, AccessMode.NO_LOCK, 10000, "") FGEN.IO.Timeout = 10000 'Query Idendity string and report. FGEN.WriteString("*IDN?", True) Dim strResult As String = FGEN.ReadString() Console.WriteLine("Instrument Identity String: " + strResult) 'Clear and reset instrument FGEN.WriteString("*CLS;*RST;*OPC?", True) FGEN.ReadString() |
|
|
|
只有小组成员才能发言,加入小组>>
925 浏览 0 评论
2215 浏览 1 评论
1998 浏览 1 评论
1866 浏览 5 评论
2734 浏览 3 评论
715浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
515浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
605浏览 0评论
2397浏览 0评论
1446浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-25 13:14 , Processed in 1.181386 second(s), Total 47, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191