Each GPIB object is associated with one controller and one instrument. The GPIB address consists of the board index of the GPIB controller, and the primary address and (optionally) the secondary address of the instrument. The term “board index” is equivalent to the term “logical unit” as used by Keysight™ (formerly Agilent Technologies®).
Note that some vendors place limits on the allowed board index values. Refer to GPIB Driver Limitations by Vendor for a list of these limitations. You can usually find the instrument addresses through a front panel display or by examining dip switch settings. Valid primary addresses range from 0 to 30. Valid secondary addresses range from 96 to 126, or can be 0, indicating that no secondary address is used.
The properties associated with the GPIB address are given below.
GPIB Address Properties
You must specify the board index and instrument primary address
values during GPIB object creation. The
are automatically updated with these values. If the instrument has
a secondary address, you can specify its value during or after object
creation by configuring the
You can display the address property values for the GPIB object
in Creating a GPIB Object .
g.BoardIndex ans = 0
g.PrimaryAddress ans = 1
g.SecondaryAddress ans = 0
To get a list of options you can use on a function, press the Tab key after entering a function on the MATLAB® command line. The list expands, and you can scroll to choose a property or value. For information about using this advanced tab completion feature, see Using Tab Completion for Functions.