Using The Standard Event Status Register To Trap An Incorrect Command-Example; Using The Operation Status Register To Alert The Computer When Measuring Is Complete-Example 3 - Keysight 53147A Operating And Programming Manual

Microwave frequency counter/power meter/dvm
Table of Contents

Advertisement

Using the Standard Event Status Register to Trap an Incorrect
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 instrument. The command *ESE 32 tells the instrument 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 instrument. The command *SRE 32 tells the instrument to assert
the SRQ line when the Event Status Register summary bit is set to 1. If the
instrument is serial-polled after a command error, the serial poll result is 96 (Bit 6 +
Bit 5).
Event Status Register
Using the Operation Status Register to Alert the Computer When
Measuring is Complete—Example 3
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 instrument is making a long measurement. When
the measurement is complete, the instrument can alert the computer.
The first line tells the instrument to watch for a negative transition from true
(measuring) to false (non-measuring) of bit 4. This negative transition indicates that
the instrument has completed a measurement. The next line tells the instrument
to summarize the detected event (bit 4 of the Operation Status Register) in the
Status Byte Register. The command *SRE 128 tells the instrument 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.
Keysight 53147A/148A/149A Operating and Programming Guide
*ESE 32
Enable for bad command.
*SRE 32
Assert SRQ from Standard Event Status Register summary.
Programming
3
189

Advertisement

Table of Contents
loading

This manual is also suitable for:

53148a53149a

Table of Contents