Event Status Register (Esr); Event Status Enable Register (Ese); Bit Assignments For The Esr And Ese; Programming The Esr And Ese - Fluke 5790A Operator's Manual

Ac measurement standard
Hide thumbs Also See for 5790A:
Table of Contents

Advertisement

Register
Serial Poll Status Byte
Service Request Enable
Register (SRE)
Event Status Register
(ESR)
Event Status Enable
Register (ESE)
Instrument Status
Register (ISR)
Instrument Status 0-1
Change Register
(ISCR1)
Instrument Status 0-1
Change Enable Register
(ISCE1)
Instrument Status 1-0
Change Register
(ISCR0)
Instrument Status 1-0
Change Enable Register
(ISCE0)

5-30. Event Status Register (ESR)

The Event Status Register is a two-byte register in which the higher eight bits are always
0, and the lower eight bits represent various conditions of the 5790A. The ESR is cleared
(set to 0) when the power is turned on, and every time it is read.

5-31. Event Status Enable Register (ESE)

A mask register called the Event Status Enable register (ESE) allows the controller to
enable or mask (disable) each bit in the ESR. When a bit in the ESE is 1, the
corresponding bit in the ESR is enabled. When any enabled bit in the ESR is 1, the ESB
bit in the Serial Poll Status Byte also goes to 1. The ESR bit stays 1 until the controller
reads the ESR or does a device clear, a selected device clear, or sends the reset or *CLS
command to the 5790A. The ESE is cleared (set to 0) when the power is turned on.

5-32. Bit assignments for the ESR and ESE

The bits in the Event Status Register (ESR) and Event Status Enable register (ESE) are
assigned as shown in Figure 5-3.

5-33. Programming the ESR and ESE

To read the contents of the ESR, send the remote command, "*ESR?." The ESR is
cleared (set to 0) every time it is read. To read the contents of the ESE, send the remote
command, "*ESE?." The ESE is not cleared when it is read. When you read either
register, the 5790A responds by sending a decimal number that when converted to binary
represents bits 0 through 15.
The following sample program retrieves the contents of both registers:
10
! THIS PROGRAM READS THE ESR AND THE ESE REGISTERS
20
PRINT @6, "*ESR?"
30
INPUT @6, A%
40
PRINT @6, "*ESE?"
50
INPUT @6, B%
60
PRINT "ESR = ";A%
70
PRINT "ESE = ";B%
80
END
Table 5-4. Status Register Summary
Read Command
(STB) *STB? (or SPL)
for 1722A)
*SRE?
*ESR?
*ESE?
ISR?
ISCE1?
ISCE1?
ISCR0?
ISCE0?
! ASK FOR THE ESR CONTENTS
! RETRIEVE THE REGISTER CONTENTS
! ASK FOR THE ESE CONTENTS
! RETRIEVE THE REGISTER CONTENTS
! DISPLAY THE ESR REGISTER CONTENTS VALUE
! DISPLAY THE ESE REGISTER CONTENTS VALUE
Write Command
None
*SRE
*ESE
*ESE
None
ISCR1
ISCE1
None
ISCE0
Remote Operation
Checking 5790A Status
Enable Register
SRE
None
None
None
None
None
None
ISCE0
None
5
5-17

Advertisement

Table of Contents
loading

Table of Contents