44
S:\agilent\8920\8920b\PRGGUIDE\BOOK\CHAPTERS\usehpib.fb
Chapter 1, Using GPIB
Getting Started
Using the GPIB with the Test Set’s built-in IBASIC Controller
The Test Set has two GPIB interfaces, an internal-only GPIB at select code 8 and
an external GPIB at select code 71. The GPIB at select code 8 is only available to
the built-in IBASIC Controller and is used exclusively for communication
between the IBASIC Controller and the Test Set. The GPIB at select code 71
serves three purposes:
1. It allows the Test Set to be controlled by an external controller
2. It allows the Test Set to print to an external GPIB printer
3. It allows the built-in IBASIC Controller to control external GPIB devices
IBASIC programs running on the Test Set’s IBASIC Controller must use the
internal-only GPIB at select code 8 to control th e Test Set. IBASIC programs
would use the external GPIB at select code 71 to control GPIB devices connected
to the rear panel GPIB connector.
NOTE: Refer to “Overview of the Test Set” on page 26 for a detailed explanation of the Test Set’s
architecture.
When using a BASIC language Workstation with an GPIB interf ace a t sele ct cod e
7 to control the Test Set, GPIB commands would look like this:
Example
! This command is sent to the Test Set at address 14.
OUTPUT 714;"*RST"
! This command is sent to another instrument whose address is 19.
OUTPUT 719;"*RST"
When executing the same commands on the Test Set’s IBASIC Controller, the
commands would look like this:
Example
OUTPUT 814;"*RST"
! Command sent to internal-only GPIB at select code 8,
! Test Set’s address does not change
OUTPUT 719;"*RST"
! Command sent to external GPIB at select code 7,
! other instrument’s address does not change.
1. Optional Connector on the Test Set.