Agilent Technologies 86120B Marine Instruments User Manual


 
5-6
Programming Commands
Common Commands
Example
OUTPUT 720;”*ESR?”
ENTER 720;Event
PRINT Event
*IDN?
The *IDN? (identification number) query returns a string value which identi-
fies the instrument type and firmware version.
Syntax
*IDN?
Description
An *IDN? query must be the last query in a program message. Any queries
after the *IDN? query in a program message are ignored.
The maximum length of the identification string is 50 bytes.
Query Response
The following identification string is returned. The third entry is the instru-
ment’s serial number. The last entry in the string is the firmware version num-
ber; this value may vary between instruments.
HEWLETT-PACKARD, 86120B, USaaaabbbb, 2.000
Example
DIM Id$[50]
OUTPUT 720;”*IDN?”
ENTER 720;Id$
PRINT Id$
*OPC
The *OPC (operation complete) command sets the operation complete bit in
the event status register when all pending device operations have finished.
Syntax
*OPC
*OPC?
Description
The *OPC? query places an ASCII “1” in the output queue when all pending
device operations have finished.
This command is useful when the computer is sending commands to other
instruments. The computer can poll the event status register to check when
the Agilent 86120B has completed the operation. Use the *OPC? query to