User`s manual

COMM1 : Verify Communication with the Instruments
This step explains how VXI instruments are addressed, based on the
computer controlling the system. The step also includes example programs
that can be executed to verify communication.
COMM1A : GPIB
Addressing
Instruments in the VXI mainframe that are programmed over GPIB are
located by an GPIB address. The GPIB address is a combination of the
controller’s interface select code, the Command Module’s primary GPIB
address, and the instrument’s secondary GPIB address. An address in this
form in an BASIC statement appears as:
OUTPUT 70903;"command..."
Interface Select Code (7): Determined by the address of the GPIB interface
card in the computer (controller). In most Agilent Technologies computers,
this card (including the Agilent 82335 GPIB interface card used in PCs) has
a factory-set address of 7.
Primary GPIB Address (09): This is the address of the GPIB port on the
Command Module. Valid addresses are 0 to 30. The Command Module has
a factory-set GPIB port address of 9.
Secondary GPIB Address (03): This address is derived from the logical
address of the Instrument Identifier module by dividing the address by 8.
Thus, for a logical address of 8, the secondary address is 01. For logical
addresses of 16 and 24, the secondary addresses are 02 and 03, and so on.
The secondary GPIB address of the Agilent E1406/05 Command Module is
always 00 regardless of its logical address.
Sending the *IDN?
Command
The following programs send the *IDN? command to the Command
Module to verify communication between the computer and the VXI
mainframe. As an example, execution of the *IDN? command may return:
HEWLETT-PACKARD,E1406,0,A.09.00
BASIC Program
10 !Send the *IDN? command, enter and display the result.
20 DIM Message$[80]
30 OUTPUT 70900;"*IDN?"
40 ENTER 70900;Message$
50 PRINT Message$
60 END
6-2 System Programming and Debugging C-Size Configuration Guide