Using the *OPC command
The *OPC (operation complete) command can also be used to detect the completion of each
calibration step. To use *OPC to detect the end of each calibration step, you must do the
following:
1.
Enable operation complete by sending *ESE 1. This command sets the OPC (operation
complete bit) in the standard event enable register, allowing operation complete status
from the standard event status register to set the ESB (event summary bit) in the status
byte when operation complete is detected.
2.
Send the *OPC command immediately following each calibration command. For
example:
:CAL:PROT:DC:STEP1;*OPC
Note that you must include the semicolon (;) to separate the two commands and that the
*OPC command must appear on the same line as the calibration command.
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 polling 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, and 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.
Generating an SRQ on calibration complete
An IEEE-488 bus SRQ (service request) can be used to detect operation complete instead of
repeatedly polling the Model 2010. To use this method, send both *ESE 1 and *SRE 32 to the
instrument, then include the *OPC command at the end of each calibration command line, as
covered above. Refer to your controller's documentation for information on detecting and
servicing SRQs.
B-18
Calibration Command Reference
Summary of Contents for 2010
Page 14: ...1 Performance Verification 1 Performance Verification...
Page 28: ...2 Calibration 2 Calibration...
Page 53: ...3 Routine Maintenance 3 Routine Maintenance...
Page 56: ...4 Troubleshooting 4 Troubleshoot ing...
Page 74: ...5 Disassembly 5 Disassembly...
Page 83: ...CONFIDENTIAL PROPRIETARY...
Page 84: ......
Page 85: ......
Page 86: ......
Page 87: ...6 Replaceable Parts 6 Replaceable Parts...
Page 98: ...CONFIDENTIAL PROPRIETARY...
Page 99: ...CONFIDENTIAL PROPRIETARY...
Page 100: ......
Page 101: ...A Specifications A Specifications...
Page 107: ...B Calibration CommandReference B Calibration CommandRef erence...