SCPI 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, see “Standard Event Status

 

Register” on page 5-58. 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, see “Output Queue” on page 5-60.

Example

OUTPUT @Agb2200;"*OPC"

 

The following example is for query:

 

OUTPUT @Agb2200;"*OPC?"

 

ENTER @Agb2200;A

5-8

Agilent B2200 User’s Guide, Edition 2

Page 134
Image 134
Agilent Technologies B2201A manual Opc