Instruction manual

Chapter 3 Programming Your Counter for Remote Operation
Programming the Counter to Synchronize Measurements
3-50 Programming Guide
3
If you had wanted to hold off the command to another instrument, you
would use the *OPC? command instead of the *WAI command.
Read the Counter. The program waits until the Counter returns a 1.
(The GPIB timeout must be set so that it is longer than the expected
measurement time.)
Using the *OPC Command to Assert SRQ
This method is recommended when the Counter is interfaced with many
other instruments, any of which can assert SRQ. The commands *OPC,
*ESE 1 and *SRE 32 are used to assert the SRQ line to alert the computer
that the Counter has completed a measurement. It is up to the computer
to use the serial poll command to determine which of the instruments on
the bus requested service.
Of the three procedures discussed here, this one is the most flexible, but it
is also the most complex:
:AVERAGE:COUNT 50
:AVERAGE ON
:INIT
*OPC?
On INIT, take 50 measurements.
Enable averaging.
Start making measurements.
Tell Counter to put a 1 in the output buffer
when 50th measurement is complete.
:AVERAGE:COUNT 50
:AVERAGE ON
*ESE 1
*SRE 32
On INIT, take N measurements.
Enable averaging.
Summarize OPC bit for Status Byte Register.
SRQ when event summary bit is 1.