User manual
IEEE-488 Reference
4-42 2001-900-01 Rev. K / August 2010
4.10.5 *IDN? identification query
Purpose To read the identification code of the Model 2001.
Format *IDN?
Description The *IDN? query command places the identification code of the Model 2001 in the Output
Queue. When the Model 2001 is addressed to talk, the identification code will be sent to the
computer.
The identification code includes the manufacturer, model number, serial number, and firmware
revision levels, and is sent in the following format:
KEITHLEY INSTRUMENTS INC., MODEL 2001, xxxxxxx, yyyyy/zzzzz
where; xxxxxxx is the serial number
yyyyy/zzzzz is the firmware revision levels of the
digital board ROM and display board ROM.
Programming Example 10 OUTPUT 716; “*IDN?” ! Request 2001 ID data
20 ENTER 716; A$ ! Address 2001 to talk
30 PRINT A$ ! Display identification code
4.10.6 *OPC operation complete
Purpose To set the Operation Complete bit in the Standard Event Status Register after all pending com-
mands are complete.
Format *OPC
Description After the *OPC command is sent, the Operation Complete bit (bit B0) of the Standard Event Sta-
tus Register will set immediately after the last pending command is completed. If the corre-
sponding bit (Bit B0) in the Standard Event Enable Register and Bit 5 (Event Summary Bit) of
the Service Request Enable Register are set, the RQS/MSS (Request for Service/Master Sum-
mary Status) bit in the Status Byte Register will set.
When used with the immediate initiation command (:INITiate), the OPC bit in the Standard
Event Status Register will not set until the Model 2001 goes back into the idle state. The :INIT
command operation is not considered finished until the Model 2001 goes back into the idle state.
See paragraph 4.10.17 (*WAI) for more information on command execution.
Programming Example Two programs are used to demonstrate how *OPC functions. The first program sends the *OPC
command after the :INITiate command and verifies that the OPC bit in the Standard Event Status
Register does not set while the instrument continues to make measurements (not in idle). The
second program returns the Model 2001 to the idle state and verifies that the OPC bit did set.
10 OUTPUT 716; “:syst:pres”
20 OUTPUT 716; “:init:cont off; :abort”
30 OUTPUT 716; “:init; *opc”
40 OUTPUT 716; “*esr?”
50 ENTER 716; A$