192
Keysight InfiniiVision M9241/42/43A PXIe Oscilloscopes SCPI Programmer's Guide
6
Common (*) Commands
*OPC (Operation Complete)
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"
•
"*ESE (Standard Event Status Enable)"
•
"*ESR (Standard Event Status Register)"
•
•
":OPERegister:CONDition (Operation Status Condition Register)"
•
":OPERegister[:EVENt] (Operation Status Event Register)"
•
, “Sequential (Blocking) vs. Overlapped Commands,” starting on page
•
"Synchronization with an Averaging Acquisition"
•
•
"Example: Blocking and Polling Synchronization"
•
"Example: Waiting for IO Operation Complete"
NOTE
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)"