主要内容

VISA 接口

与支持 VISA 标准的仪器通信

您可以将 VISA 接口与多种类型的接口一起使用,例如 TCP/IP、USB、GPIB 等。您需要使用确定通信接口类型的参数创建一个 visadev 对象。例如,对于 VISA-GPIB 对象,visadev 函数采用包含板索引和地址的 VISA 资源字符串。

函数

全部展开

visadevlistList available VISA resources
visadevCreate connection to device using VISA
configureTerminatorSet terminator for ASCII string communication with VISA resource
visastatusCheck status of VISA resource
visatriggerSend trigger to GPIB or VXI instruments
visadevfindFind VISA device connections (自 R2024a 起)
readRead data from VISA resource
readlineRead line of ASCII string data from VISA resource
readbinblockRead one binblock of data from VISA resource
writeWrite data to VISA resource
writelineWrite line of ASCII data to VISA resource
writebinblockWrite one binblock of data to VISA resource
writereadWrite command to VISA resource and read response
flushClear buffers for communication with VISA resource
setDTRSet serial DTR pin
setRTSSet serial RTS pin
getpinstatusGet serial pin status

属性

visadev PropertiesAccess VISA resource properties

App

VISA 通信管理器Connect to and communicate with instruments over VISA (自 R2022b 起)

模块

VISACommunicate with VISA resources (自 R2023b 起)

主题

连接并配置 VISA 接口

与 VISA 资源通信

疑难解答

VISA 接口故障排除

对 VISA 接口进行故障排除。

Resolve VISA Connection Errors

Troubleshoot connecting to a device using VISA.

Resolve VISA Warning: Unable to Read Any Data

Troubleshoot when you receive some data and you get the warning message: 'visadev' unable to read any data.

Resolve VISA Warning: Unable to Read All Data

Troubleshoot when you receive some data and you get the warning message: 'visadev' unable to read all requested data.

精选示例