Chapter 3 Programming Your Universal Counter for Remote Operation
Elements of SCPI Commands
Programming Guide
3-39
Using the Standard Event Status Register to Trap an Incorrect
HP-IB command— Example 2
The following command grouping shows how to use the Standard Event Status
Register and the Status Byte Register to alert the computer when an incorrect
command is sent to the Counter.
The command *ESE 32 tells the Counter to summarize the command error bit ( bit
5 of the Event Status Register) in the Status Byte Register. The command error bit
is set when an incorrect command is received by the Counter. The command *SRE
32 tells the Counter to assert the SRQ line when the Event Status Register
summary bit is set to 1. If the Counter is serial polled after a command error, the
serial poll result will be 96.
Event Status Register
*ESE 32
*SRE 32
Enable for bad command.
Assert SRQ from Standard Event Status Register summary.
Using the Questionable Data/Signal Status Register to Alert the
Computer When Automatic Interpolator Calibration is
Disabled— Example 3
The default operation of the Counter is for automatic interpolator calibration to
occur before every measurement. To optimize throughput over the HP-IB, the
automatic calibration can be disabled. When it is disabled, the most recent
calibration values are used. These values may not be the optimal values for a
particular temperature or other environmental condition. For this reason,
the Time, Frequency and Phase bits in the Questionable Data register are set
whenever the automatic calibration is disabled.
In the following Questionable Data Status Register example, the first line tells the
Counter to detect a transition from negative
(non-questionable data) to positive (questionable data) of bits 2, 5, and 6 in the
Questionable Data Register. The next line tells the Counter to summarize the
detected events in the Status Byte Register. The command *SRE 8 tells the
Counter to assert the SRQ line when the summary bit for the Questionable Data
register is set to 1. A serial poll will return the value 72 when the automatic
calibration transitions from on to off.
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 ...