GPIB is a standardized interface that allows you to connect
and control multiple devices from various vendors. For many GPIB applications,
you can communicate with your instrument without detailed knowledge
of how GPIB works. Communication is established through a GPIB object,
which you create in the MATLAB® workspace. For information about
gpib object, see Creating a GPIB Object.
You can write and read both binary and text data. For examples of both, see Writing and Reading Data.
|Read binblock data from instrument|
|Write binblock data to instrument|
|Remove instrument objects from MATLAB workspace|
|Clear instrument buffer|
|Remove instrument objects from memory|
|Display instrument object summary information|
|Disconnect interface object from instrument|
|Connect interface object to instrument|
|Write text to instrument|
|Read data from instrument, and format as text|
|Instrument object properties|
|Create GPIB object|
|Information about available hardware|
|Disconnect and delete all instrument objects|
|Instrument object property information|
|Configure or display instrument object properties|
|Perform serial poll on GPIB objects|
|Send trigger message to instrument|
|Read line of text from instrument and discard terminator|
|Read line of text from instrument and include terminator|
|Remove data from input buffer|
|Remove data from output buffer|
|Read binary data from instrument|
|Write binary data to instrument|
|Determine whether instrument objects are valid|
|Open Property Inspector|
|Length of instrument object array|
|Load instrument objects and variables into MATLAB workspace|
|Class method names and descriptions|
|Convert instrument object to MATLAB code|
|Write text to instrument, and read data from instrument|
|Read data asynchronously from instrument|
|Record data and event information to file|
|Save instrument objects and variables to MAT-file|
|Read data from instrument, format as text, and parse|
|Size of instrument object array|
|Stop asynchronous read and write operations|
|Display event information when event occurs|
|Read instrument objects from memory to MATLAB workspace|
|Find visible and hidden instrument objects|
|Help for instrument object type, function, or property|
|Define and retrieve commands that identify instruments|
|Define notification for instrument events|
|Test and Measurement Tool||Control oscilloscopes and other instruments|
The GPIB object establishes a connection to an instrument via its GPIB interface.
The GPIB address consists of the board index of the GPIB controller, and the primary address and (optionally) the secondary address of the instrument.
Rules for read and write operations with GPIB and examples of writing and reading both text and binary data.
Enhance your instrument control communication using events and callbacks.
Send the GET (Group Execute Trigger) GPIB command to the instrument. This command instructs all addressed Listeners to perform a specified action.
Execute a serial poll where the Controller asks (polls) each addressed Listener to send back a status byte that indicates whether it has asserted the SRQ line and needs servicing.
Try these tips if you have problems using the toolbox with the GPIB interface. Includes information about GPIB supported platforms, adaptor requirements, configuration and connection, and other interface-specific tips.