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,
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.
Connect and Configure
|List available VISA resources (Since R2021a)
|Create connection to device using VISA (Since R2021a)
|Set terminator for ASCII string communication with VISA resource (Since R2021a)
|Check status of VISA resource (Since R2021a)
|Send trigger to GPIB or VXI instruments (Since R2021a)
Read and Write
|Read data from VISA resource (Since R2021a)
|Read line of ASCII string data from VISA resource (Since R2021a)
|Read one binblock of data from VISA resource (Since R2021a)
|Write data to VISA resource (Since R2021a)
|Write line of ASCII data to VISA resource (Since R2021a)
|Write one binblock of data to VISA resource (Since R2021a)
|Write command to VISA resource and read response (Since R2021a)
|Clear buffers for communication with VISA resource (Since R2021a)
|Connect to and communicate with instruments over VISA (Since R2022b)
- Get Started with GPIB Interface
Establish a connection between MATLAB and your instrument using the VISA-GPIB interface.
- Write and Read GPIB Data
Write and read both text and binary data over the VISA-GPIB interface.
- Send Trigger to Instrument
Send the trigger command to your VISA resource.
- Execute Serial Polls
Execute a serial poll to check the status of your VISA resource.
- GPIB Overview
Basic features of the General Purpose Interface Bus (GPIB).
- Transition Your Code to VISA-GPIB Interface
Connect to a GPIB instrument using
Troubleshoot the VISA-GPIB interface.