Agilent 4155C/4156C SCPI Command Reference, Edition 1 4-9
Common Commands
*OPC
*OPC
This command starts to monitor pending operations, and sets/clears the Operation
Complete (OPC) bit in the Standard Event Status Register as follows:
• If there is no pending operation, sets the OPC bit to 1.
• If there are any pending operations, sets the OPC bit to 0. The bit will be set to 1
again when all pending operations are completed.
So, *OPC command is required to enable the OPC bit. To stop monitoring pending
operations (disable OPC bit), execute the *CLS command.
For details about the Standard Event Status Register, refer to Chapter 3. Also, see
*WAI command.
When the operations initiated by the following commands are finished, the OPC bit
in the Standard Event Status Register is set:
• :PAGE:SCONtrol[:MEASurement]:SINGle
• :PAGE:SCONtrol[:MEASurement]:APPend
• :PAGE:SCONtrol:STRess[:STARt]
• :PAGE:SCONtrol:KSWeep[:STARt]
• :DIAGnostic:TEST[:EXECute]
• :HCOPy[:IMMediate]
• :HCOPy:ITEM:ALL[:IMMediate]
• :HCOPy:ITEM[:WINDow]:TRACe[:IMMEdiate]
• :HCOPy:SDUMp[:IMMediate]
Syntax *OPC
Query response 1 <newline><^END>
*OPC? places ASCII character 1 into the Output Queue when all pending
operations are completed.
For details about the Output Queue, refer to Chapter 3.
Example OUTPUT @Hp4155;"*OPC"
The following example is for query:
OUTPUT @Hp4155;"*OPC?"
ENTER @Hp4155;A