是德科技
直播中

李晔皓

7年用户 175经验值
私信 关注
[问答]

使用C#编写34970A应用程序收到错误该怎么办?

嗨,我正在使用C#编写一个通过RS232将我的PC连接到34970A的应用程序,但我收到一条错误,说Visual Studio无法找到参考VisaComLib。我已经通过添加“glbls”正确添加了引用
.dll“和其他东西......但是Visual Studio仍然无法找到VisaComlib库的”包装器组件“...顺便说一下,我正在使用MS Visual 2010 express C#版,以防万一。帮助plz!

以上来自于谷歌翻译


     以下为原文

  Hi,

i'm programming in C# an application to connect my PC to the 34970A via RS232,
but i'm getting an error saying that Visual Studio can't find the reference VisaComLib.

I've correctly added the reference by adding "glbls.dll" and other stuff.. but Visual Studio still can't find the "wrappers assembly" of the VisaComlib library...

btw i'm using MS Visual 2010 express C# edition, just in case.

help plz !  

回帖(2)

杜文渊

2019-8-1 13:27:38
你在哪里看到glbls.dll被引用?
我不认为我以前听过它。你可以直接指向VISA COM主互操作组件(PIA)。
它将安装在:“%VXIPNPPATH%VisaCom  Primary Interop Assemblies”键入文件资源管理器或命令提示符,以查看它在您的系统上解析的内容...在我的系统上它解析为:C: Program Files
IVI Foundation  VISA  VisaCom  Primary Interop Assemblies

以上来自于谷歌翻译


     以下为原文

  Where are you seeing glbls.dll referenced? I don't think I've ever heard of it before.

You can point to the VISA COM Primary Interop Assembly (PIA) directly. It's going to be installed at:
"%VXIPNPPATH%VisaComPrimary Interop Assemblies"

Type that into File Explorer or your command prompt to see what it resolves to on your system...

On my system it resolves to:

C:Program FilesIVI FoundationVISAVisaComPrimary Interop Assemblies
举报

李晔皓

2019-8-1 13:42:07
已解决!我正在查看C: Program files  VISA  VisaCom,其中安装了一个不同的库。在执行命令后,它在C: VXIPNP  VisaComThx找到了正确的库文件!

以上来自于谷歌翻译


     以下为原文

  Resolved !

i was looking in C:Program filesVISAVisaCom, where is installed a different library.

after executing your command it found the correct library files at C:VXIPNPVisaCom

Thx !
举报

更多回帖

发帖
×
20
完善资料,
赚取积分