User manual

Table Of Contents
Part 5: IEEE 488.2 Programming Reference
Use *OPC? and WAIT
The acquisition WAIT command (not to be confused with the IEEE 488.2 standard *WAI command):
l Waits for the acquisition to complete, but does not wait for the processing.
l Allows you to specify an optional timeout so that if the oscilloscope does not trigger, your program
does not hang.
Note: If you use the timeout method, it is strongly advised to then check the status registers with
*OPC? to ensure the oscilloscope actually triggered and any processing has completed.
The *OPC? query returns a 1 when the previous commands have finished. This means you can use this
query with the WAIT command to synchronize the oscilloscope with your controller, using the procedure
shown here:
1. STOP the acquisition.
2. (Commands to) set up the oscilloscope.
3. ARM or TRMD SINGLE to start the acquisition.
4. WAIT for trigger and acquisition to complete.
5. *OPC? to ensure processing is complete.
6. (Commands/queries to) read data, cursors, and measurement parameters.
5-17