Chapter 3 Programming Your Universal Counter for Remote Operation

How to Program the Counter for Status Reporting

Questionable Data Status Register

:STAT:QUES:PTR 100; NTR 0

:STAT:QUES:ENABLE 100

*SRE 8

Detect transition from non-questionable to questionable data.

Enable to detect for auto cal off.

Assert SRQ on Questionable Summary bit.

Using the Operation Status Register to Alert the Computer When Measuring has Completed—

Example 4

The following command grouping illustrates how to use the Operation Status register and the Status Byte register to alert the computer when measuring has completed. This is useful if the Counter is making a long measurement. For example, a frequency measurement with a gate time of 10 seconds. When the measurement is complete, the Counter can alert the computer.

The first line tells the Counter to watch for a negative transition from true (measuring) to false (non-measuring) of bit 4. This negative transition indicates that the Counter has completed a measurement. The next line tells the Counter to summarize the detected event (bit 4 of the Operation Status Register) in the Status Byte Register. The command *SRE 128 tells the Counter to assert SRQ when the summary bit for the Operation Status register is set to 1. A serial poll will return 192 when a measurement has completed.

Operation Status Register

:STAT:OPER:PTR 0; NTR 16 :STAT:OPER:ENABLE 16

*SRE 128

Detect transition from measuring to non- measuring.

Enable to detect measuring.

Assert SRQ on Operation Summary bit.

3-40

Programming Guide

Page 108
Image 108
HP 132A, 53131A manual Questionable Data Status Register, Operation Status Register