Chapter 3 Programming Your Universal Counter for Remote Operation
How to Program the Counter for Status Reporting
3-38
Programming Guide
How to Program the Counter for Status
Reporting
Determining the Condition of the Counter
The Counter has status registers that are used to indicate its condition. There are
four register groups that can be examined individually, or used to alert a
computer. These registers, shown in Figure 3-6, are:
•
Operation Status Register Group
•
Questionable Data/Signal Register Group
•
Standard Event Status Register Group
•
Status Byte Register Group
The first three groups all have event registers that can be fed into the Status Byte
Register. The Status Byte Register can be used to assert the SRQ line of the HP-
IB and thus alert the computer that the Counter needs attention. The following
examples show how each of the register groups can be used. (Figure 3-10 is a
flowchart diagram of how to program the Counter for Status Reporting.)
Resetting the Counter and Clearing the HP-IB Interface—
Example 1
Before attempting any programming, it is a good idea to set the Counter to a
known state . The following command grouping shows how to reset the Counter.
Before issuing these commands, execute a device clear to reset the interface and
Counter. Consult your interface card ’s documentation for how to issue a device
clear since the device clear command will be specific to the interface you are
using. Perform the following:
1.
Issue a Device Clear (See your computer or interface card documentation
for how to issue this command).
2.
Issue the following commands:
*RST
*CLS
*SRE 0
*ESE 0
:STAT:PRES
Summary of Contents for 53131A
Page 1: ...Programming Guide HP 53131A 132A 225 MHz Universal Counter ...
Page 2: ......
Page 13: ...1 1 Before You Start ...
Page 24: ...Chapter 1 Before You Start Related Documentation 1 12 Programming Guide ...
Page 25: ...2 2 Command Summary A Quick Reference ...
Page 68: ...Chapter 2 Command Summary RST Response 2 44 Programming Guide ...
Page 69: ...3 3 Programming Your Universal Counter for Remote Operation ...
Page 167: ...4 4 Command Reference A Dictionary ...
Page 310: ...Chapter 4 Command Reference WAI Wait to Continue Command 4 144 Programming Guide ...
Page 311: ...5 5 Errors ...
Page 329: ......
Page 330: ...H Manual Part Number 53131 90044 Printed in U S A NOVEMBER 1996 ...