beautypg.com

Synchronizing with *opc? and wait – Teledyne LeCroy X-STREAM OSCILLOSCOPES Remote Control User Manual

Page 35

background image

C

H A P T E R

T

W O

:

Control by GPIB

WM-RCM-E Rev D

ISSUED: February 2005

29

If the data have already been acquired and you want to do further analysis (math, parameters, cursors) on it,

you can proceed as shown in Figure 2:

For more details on Status registers, see Chapter 5.

SYNCHRONZING WITH *OPC? AND WAIT

The *OPC? query returns a 1 when the previous commands have finished. Therefore, you can use this query

with the WAIT command to synchronize the scope with your controller, using the steps shown in Figure 3
below. The WAIT command waits for the acquisition to complete, but it does not wait for the processing. The

WAIT command allows you to specify an optional timeout so that if the scope does not trigger, your program
will not hang. However, if you use the timeout, it is strongly advised to subsequently check the status registers

to ensure that the scope actually triggered and that any processing has completed.