函数参考


_viFindGpib

通过 VISA 卡接口(GPIB接口/ TCP协议)发送命令或查询到仪器或设备

#include <Visa.au3>
_viFindGpib ( ByRef $a_descriptor_list, ByRef $a_idn_list [, $f_show_search_results = 0] )

参数

$a_descriptor_list(ByRef) 返回 GPIB 总线设备 VISA 资源描述的数组 (更多信息见 _viExecCommand 备注)
$a_idn_list(ByRef) 返回 GPIB 总线设备 (例如复合名) IDN 数组
$f_show_search_results [可选参数] 如为 1, 则显示搜索结果消息框.
默认为 0, 不显示结果

返回值

成功: 返回设备数(0 或更多)
失败: 返回一个负值,设置@error:to 1

注意/说明

VISA 函数必须安装 VISA 库文件(您可以检查visa32.dll是否在 WINDOWS\System32 目录中)
及 GPIB 卡(例如 National Instruments NI PCI-GPIB card or an Agilent 82350B PCI High-Performance GPIB card)
 * 常见 VISA 描述符详细介绍,见 _viExecCommand 函数备注

相关

_viExecCommand, _viOpen, _viClose, _viGTL, _viGpibBusReset

示例/演示


; 该示例执行一个GPIB总线上的搜索并在消息框中显示结果

#include <Visa.au3>

Local $a_descriptor_list[1], $a_idn_list[1]
_viFindGpib($a_descriptor_list, $a_idn_list, 1)