HP (Hewlett-Packard) HP 53131A Water Dispenser User Manual


 
Chapter 3 Programming Your Universal Counter for Remote Operation
How to Program the Counter to Synchronize Measurements
3-48 Programming Guide
*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 is the most flexible, but also the most
complex.
:CALC3:AVERAGE ON
:CALC3:AVERAGE:COUNT 50
:TRIG:COUNT:AUTO ON
*ESE 1
*SRE 32
Enable statistics.
Base statistics on 50 measurements.
On INIT, take N measurements.
Summarize OPC bit for Status Byte
Register.
SRQ when event summary bit is 1.
Set up program to specify service routine and enable interrupt when SRQ is
asserted.
:INIT
*OPC
Start measurements.
Enable OPC bit.
Program could be doing other things while waiting for SRQ.
When SRQ occurs and the Counter has been identified as the cause of the SRQ,
ask for the data:
:CALC3:AVERAGE:ALL? Ask for statistics.