Technical data
236 Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
13 Common Commands
*OPC
(Operation Complete)
Command
*OPC
The *OPC command sets the operation complete bit in the Standard Event
Status Register when all pending device operations have finished.
Example This example sets the operation complete bit in the Standard Event Status
Register when the DIGitize operation is complete.
myScope.WriteString ":DIGITIZE CHANNEL1;*OPC"
Query *OPC?
The *OPC? query places an ASCII character "1" in the oscilloscope's output
queue when all pending selected device operations have finished.
Returned Format
1<NL>
Example This example places an ASCII character "1" in the oscilloscope's output
queue when the AUToscale operation is complete. Then the value in the
output queue is placed in the numeric variable var"varComplete."
myScope.WriteString ":AUTOSCALE;*OPC?"
varComplete = myScope.ReadNumber
Debug.Print FormatNumber(varComplete, 0)
The *OPC? query allows synchronization between the computer and the
oscilloscope by using the message available (MAV) bit in the Status Byte or
by reading the output queue. Unlike the *OPC command, the *OPC query
does not affect the OPC Event bit in the Standard Event Status Register.