240 Keysight InfiniiVision 4000 X-Series Oscilloscopes Programmer's Guide
6 Common (*) Commands
*OPC (Operation Complete)
(see page 1610)
Command Syntax
*OPC
The *OPC command sets the operation complete bit in the Standard Event Status
Register when all pending device operations have finished.
You can use the *ESR? query to look at the OPC bit (bit 0) in the Standard Event
Status Register to determine when an operation is complete.
Query Syntax
*OPC?
The *OPC? query places an ASCII "1" in the output queue when all pending device
operations have completed. The interface hangs until this query returns.
The *OPC? query can be used between overlapped commands to make sure one is
complete before the next one begins. The *OPC? query can also be used to pause
a controller program until an operation is complete.
Return Format
<complete><NL>
<complete> ::= 1
See Also • "Introduction to Common (*) Commands" on page 231
• "*ESE (Standard Event Status Enable)" on page 234
• "*ESR (Standard Event Status Register)" on page 236
• "*CLS (Clear Status)" on page 233
• ":OPERegister:CONDition (Operation Status Condition Register)" on page 280
• ":OPERegister[:EVENt] (Operation Status Event Register)" on page 283
• Chapter 4, “Sequential (Blocking) vs. Overlapped Commands,” starting on page
91
• "Synchronization with an Averaging Acquisition" on page 1596
• "Set Up the Oscilloscope" on page 1590
• "Example: Blocking and Polling Synchronization" on page 1598
• "Example: Waiting for IO Operation Complete" on page 1586
The front-panel graphical user interface can disable most of the remote interface, including
the *OPC syntax, in certain situations. Bit 4 in the Operation Status Condition Register shows
whether the remote user interface is enabled or disabled. For more information, see
":OPERegister:CONDition (Operation Status Condition Register)" on page 280.