1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我想使用perl(或其他一些脚本语言)远程控制我的34410A。
对于大多数事情,这将是非常容易的,因为我会这样做:$ rm = Win32 :: OLE-> new(“VisaComLib.ResourceManager”);但是,由于某种原因,这不起作用(我从中获取了prog-id VB示例;“Ivi.Visa.Interop.ResourceManager”也不起作用。 这有可能吗? 我不想使用.NET或我必须编译的其他语言/系统。 (是的,我安装了驱动程序,所需的组件似乎就在那里;我可以用C#创建这个对象。)谢谢,marco 以上来自于谷歌翻译 以下为原文 Hello, I'd like to remote control my 34410A using perl (or some other scripting language). For most things, this would be pretty easy as I would do : $rm = Win32::OLE->new("VisaComLib.ResourceManager"); But, for some reason this doesn't work (I took the prog-id from the VB sample; "Ivi.Visa.Interop.ResourceManager" doesn't work either). Is this even possible? I don't want to use .NET or other language/system that I have to compile. (Yes I installed the drivers and the required components seem to be there; I can create this object from C#.) Thanks, marco |
|
相关推荐
2个回答
|
|
你考虑过使用Python吗?
有一个名为PyVISA的附加软件包,它与标准VISA库连接,允许对仪器进行编程控制。 我在安捷伦和NI VISA库中都使用过它。 附件是网络分析器的一个例子,可能有所帮助。还有一个名为Lab :: Instrument的Perl项目也可以使用VISA工作,但我没有时间去尝试它。使用其中一个,可能会让你远离 必须在脚本语言中使用COM,这并不总是最容易的。 以上来自于谷歌翻译 以下为原文 Have you considering using Python? There is an add-in package called PyVISA which interfaces with the standard VISA libraries to allow programmatic control of instruments. I've used it with both Agilent and NI VISA Libraries. Attached is an example for a network analyzer that may help. There is also a Perl project called Lab::Instrument that should also work using VISA, but I haven't had time to try it. Using one of these, may keep you from having to use COM in a scripting language, which can not always be the easiest. 附件
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
1287 浏览 0 评论
2375 浏览 1 评论
2194 浏览 1 评论
2064 浏览 5 评论
2951 浏览 3 评论
1111浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
753浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
926浏览 0评论
1287浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 22:52 , Processed in 1.307510 second(s), Total 78, Slave 62 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号