Programming The Esr And Ese - Fluke 5820A Operator's Manual

Oscilloscope calibrator
Hide thumbs Also See for 5820A:
Table of Contents

Advertisement

15
14
0
0
7
6
PON
0
PON
Power on. This bit is set to 1 if line power has been turned off and on since the last
time the ESR was read.
CME
Command error. The 5820A's IEEE-488 interface encountered an incorrectly formed
command. (The command ERR? fetches the earliest error code in the error queue,
which contains error codes for the first 15 errors that have occurred.)
EXE
Execution error. An error occurred while the 5820A tried to execute the last command.
This could be caused, for example, by a parameter being out of range. (The command
ERR? fetches the earliest error in the error queue, which contains error codes for the
first 15 errors that have earliest error in the error queue, which contains error codes for
the first 15 errors that have occurred.)
DDE
Device-dependent error. An error related to a device-dependent command has occurred.
QYE
Query error. The 5820A was addressed to talk when no response data was available or
appropriate, or when the controller failed to retrieve data on the output queue.
OPC
Operation complete. All commands previous to reception of a *OPC command have been
executed, and the interface is ready to accept another message.
Figure 5-9. Event Status Register (ESR) and Event Status Enable (ESE)

5-50. 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 5820A Calibrator responds by sending a decimal number that when converted to
binary represents bits 0 through 15. The following sample BASIC 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
13
12
11
0
0
5
4
CME
EXE
DDE
! 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
10
9
0
0
0
3
2
1
QYE
0
Remote Operation
Checking 5820A Status
8
0
0
OPC
oq034f.eps
5
5-41

Advertisement

Table of Contents
loading

Table of Contents