完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
是否有一个命令将返回所有连接设备的VISA别名而不是完整地址?使用VB,我发送:ResourceString = ioMgr.FindRsrc(“?* INSTR”)这很好地返回连接的完整地址
USB设备,但它很长而且凌乱。 我正在尝试使用返回的信息填充下拉框(组合框)以供我的用户选择他们想要连接的设备,这样他们就不需要打开Connection Expert来查看设备地址或别名 是。 我可以按原样使用它,但我宁愿能够查询别名。有人知道这是否可行?干杯,杰夫 以上来自于谷歌翻译 以下为原文 Is there a command that will return the VISA alias of all connected devices rather than the full address? Using VB, I'm sending: ResourceString = ioMgr.FindRsrc("?*INSTR") This is nicely returning the full address of a connected USB device, but it is long and messy. I'm trying to use the returned information to populate a drop down box (combobox) for my user to select which equipment they want to connect to, this way they do not need to open the Connection Expert to see what the device address or alias is. I can work with it as it is, but I'd rather be able to query for the alias names. Does anyone know if this is possible? Cheers, Jeff |
|
相关推荐
2个回答
|
|
|
查看viParseRsrcEx函数。
与viFindRsrc结合使用的该函数将完成您要执行的操作。 这在随Agilent IO Libraries Suite一起安装的VISA功能参考中进行了讨论。 以上来自于谷歌翻译 以下为原文 Check out the viParseRsrcEx function. That function used in conjunction with viFindRsrc will complete what you are trying to do. This is discussed in the VISA Function Reference that is installed with the Agilent IO Libraries Suite. |
|
|
|
|
|
感谢您提供的信息,我会尽快调查您的提示。谢谢,杰夫
以上来自于谷歌翻译 以下为原文 Thanks for the info, I'll look into your tips shortly. Cheers, Jeff |
|
|
|
|
只有小组成员才能发言,加入小组>>
1846 浏览 0 评论
2740 浏览 1 评论
2641 浏览 1 评论
2451 浏览 5 评论
3461 浏览 3 评论
1847浏览 0评论
420浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-3 04:29 , Processed in 3.432515 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
4327