348 Chapter 7 
IEEE and STATus Commands (Remote Commands Only)
Operation Complete
IEEE and STATus Commands (Remote 
Commands Only)
Operation Complete
The *OPC command sets bit 0 in the standard event status register (SER) to “1” when 
pending operations have finished, that is when all overlapped commands are complete. It 
does not hold off subsequent operations. You can determine when the overlapped 
commands have completed either by polling the OPC bit in SER, or by setting up the 
status system such that a service request (SRQ) is asserted when the OPC bit is set.
The *OPC? query returns a “1” after all the current overlapped commands are complete. So 
it holds off subsequent commands until the “1” is returned, then the program continues. 
This query can be used to synchronize events of other instruments on the external bus.
Mode All modes
Remote Command *OPC
*OPC?
Example INIT:CONT 0 Selects single sweeping.
INIT:IMM Initiates a sweep.
*OPC? Holds off any further commands until the sweep is 
complete.
SCPI Status Bits/OPC 
Dependencies
Not global to all remote ports or front panel. *OPC only 
considers operation that was initiated on the same port as 
the *OPC command was issued from.
*OPC is an overlapped command, but *OPC? is sequential.