Detecting calibration step completion
When sending remote calibration commands, you must wait until the instrument completes
the current operation before sending another command. You can use either *OPC? or *OPC to
help determine when each calibration step is completed.
Using the *OPC command
The *OPC (operation complete) command can be used to detect the completion of a
calibration step. The following command sequence shows how to use *OPC with a calibration
step:
*CLS ' Clears all event registers and error queue.
*ESE 1 ' Enables OPC bit in standard event register.
*SRE 32 ' Enables ESB bit in status byte register.
:CAL:PROT:STEP1;*OPC ' Perform calibration step and send *OPC.
After sending *OPC, use the serial poll (SPE, SPD) sequence to monitor the RQS bit of the
serial poll (status) byte of the Model 2182. When the calibration step is completed, a service
request will be generated and set the RQS bit, indicating that the next calibration step can now
be performed.
NOTE After a service request is generated, it must be cleared by reading the event status
register by sending the following command:
*ESR?
Calibration Reference B-13