Calibration Command Reference
3-14
3. After reading the output queue, repeatedly test MAV
again until it clears. At this point, the calibration step is
completed.
3.6.2 Using the *OPC command
The *OPC (operation complete) command can also be used
to detect the completion of each calibration step. In order to
use OPC to detect the end of each calibration step, you must
do the following:
1. Enable operation complete by sending *ESE 1. The
command sets the OPC (operation complete bit) in the
standard event enable register, allowing operation com-
plete status from the standard event status register to set
the ESB (event summary bit) in the status byte when op-
eration complete is detected.
2. Send the *OPC command immediately following each
calibration command. For example:
:CAL:PROT:DC:ZERO;*OPC
Note that you must include the semicolon (;) to separate
the two commands.
3. After sending a calibration command, repeatedly test
the ESB (Event Summary) bit (bit 5) in the status byte
until it is set. (Use either the *STB? query or serial poll-
ing to request the status byte.)
4. Once operation complete has been detected, clear OPC
status using one of two methods: (1) Use the *ESR?
query then read the response to clear the standard event
status register, or (2) Send the *CLS command to clear
the status registers. Note that sending *CLS will also
clear the error queue and operation complete status.