Main Content

本页采用了机器翻译。点击此处可查看最新英文版本。

VISA 接口

与支持 VISA 标准的仪器通信

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

函数

全部展开

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

属性

visadev PropertiesAccess VISA resource properties (自 R2021a 起)

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.

精选示例