Command Reference *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 “Standard Event Status

 

Register” on page 7-53. Also, see *WAI command.

Syntax

*OPC

Query response

1 <newline><^END>

 

*OPC? places ASCII character 1 into the Output Queue when all pending

 

operations are completed. For details, refer to “Output Queue” on page 7-55.

Example

OUTPUT @Hp5250;"*OPC"

 

The following example is for query:

 

OUTPUT @Hp5250;"*OPC?"

 

ENTER @Hp5250;A

Agilent E5250A User’s Guide, Edition 9

7-9

Page 177
Image 177
Agilent Technologies Agilent E5250A manual Opc