Main Content

GPIB Interface

Communicate with instruments using the VISA-GPIB interface

GPIB is a standardized interface that allows you to connect and control multiple devices from various vendors. Communication is established through a VISA-GPIB object, visadev, which you create in the MATLAB® workspace. For information about creating the VISA-GPIB object, see Get Started with GPIB Interface.

You can write and read both binary and text data. For examples of both, see Write and Read GPIB Data.

Functions

expand all

visadevlistList available VISA resources (Since R2021a)
visadevCreate connection to device using VISA (Since R2021a)
configureTerminatorSet terminator for ASCII string communication with VISA resource (Since R2021a)
visastatusCheck status of VISA resource (Since R2021a)
visatriggerSend trigger to GPIB or VXI instruments (Since R2021a)
readRead data from VISA resource (Since R2021a)
readlineRead line of ASCII string data from VISA resource (Since R2021a)
readbinblockRead one binblock of data from VISA resource (Since R2021a)
writeWrite data to VISA resource (Since R2021a)
writelineWrite line of ASCII data to VISA resource (Since R2021a)
writebinblockWrite one binblock of data to VISA resource (Since R2021a)
writereadWrite command to VISA resource and read response (Since R2021a)
flushClear buffers for communication with VISA resource (Since R2021a)

Apps

VISA ExplorerConnect to and communicate with instruments over VISA (Since R2022b)

Topics

Troubleshooting

Troubleshooting GPIB Interface

Troubleshoot the VISA-GPIB interface.