visadev
使用 VISA 创建与设备的连接
说明
visadev 对象表示通过 VISA 接口与设备或仪器的连接。支持以下接口类型:TCP/IP(使用 VXI11 和 HiSLIP)、TCP/IP Socket、USB、GPIB、Serial、VXI 和 PXI。使用 visadevlist 识别可连接到的可用设备。然后,使用 visadev 连接到设备或仪器。
创建对象
描述
使用其 VISA 资源名称创建与设备的连接。使用已安装的 VISA 驱动建立连接。如果您安装多个 VISA 驱动,MATLAB® 将使用在您的 VISA 供应商的配置实用工具软件中设置的首选 VISA。 v = visadev(resourceName)
使用设备的 VISA 别名(如果存在)创建与设备的连接。如果配置实用工具尚无法识别该设备,则您无法使用别名进行连接,必须使用资源名称。v = visadev(resourceAlias)
输入参量
属性
有关属性的完整列表,请参阅 visadev Properties。
对象函数
read | Read data from VISA resource |
readline | Read line of ASCII string data from VISA resource |
readbinblock | Read one binblock of data from VISA resource |
write | Write data to VISA resource |
writeline | 向 VISA 资源写入 ASCII 数据行 |
writebinblock | Write one binblock of data to VISA resource |
writeread | Write command to VISA resource and read response |
configureTerminator | Set terminator for ASCII string communication with VISA resource |
flush | Clear buffers for communication with VISA resource |
visastatus | Check status of VISA resource |
visatrigger | Send trigger to GPIB or VXI instruments |
setDTR | Set serial DTR pin |
setRTS | Set serial RTS pin |
getpinstatus | Get serial pin status |