主要内容

GPIB 接口

使用 VISA-GPIB 接口与仪器通信

GPIB 是一种标准化接口,允许您连接和控制来自不同供应商的多个设备。通信是通过您在 MATLAB® 工作区中创建的 VISA-GPIB 对象 visadev 建立的。有关创建 VISA-GPIB 对象的信息,请参阅 Get Started with GPIB Interface

您可以写入和读取二进制数据和文本数据。有关两者的示例,请参阅 Write and Read GPIB Data

函数

全部展开

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

App

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

主题

疑难解答

Troubleshooting GPIB Interface

Troubleshoot the VISA-GPIB interface.