*OPC

From Keysight 34970A/34972A

*OPC
*OPC?

Syntax

*OPC

*OPC?

Description

The command form starts the OPC state engine and returns. At the end of the current scan, bit 0 of the enable register for the Standard Event Register will be set to 1. The query form returns 1 to the output buffer at the completion of the current operation.

For more information on the Status System for the instrument, see Status System Introduction.
For more information on the Standard Event Register, see *ESE.

Remarks

  • This command enables you to synchronize your application with the instrument.
  • You can configure SRQ interrupts to notify user applications.
  • Note the difference between the *OPC command and the *OPC? query. The *OPC? query sets the output buffer to 1 at the completion of the current operation.

Examples

The following command returns immediately and causes the status system to set the "Operation Complete" bit at the end of the current scan.

*OPC

 

The following query sends "1" to the output buffer when the current operation completes.

*OPC?

Typical Response: +1

See Also

IEEE-488 Common Commands Introduction

*ESE