Program The Esr And Ese - Fluke 5502A Operator's Manual

Multi-product calibrator
Hide thumbs Also See for 5502A:
Table of Contents

Advertisement

5502A
Operators Manual
15
0
7
PON
PON
CME
EXE
DDE
QYE
OPC

Program the ESR and ESE

To read the contents of the ESR, send the remote command, *ESR?. The ESR is cleared
(set to 0) each 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 the registers, the
Calibrator answers by sending a decimal number that when change to binary shows bits 0
through 15. The subsequent sample BASIC program gets the contents of each register:
5-42
14
13
0
0
6
5
0
CME
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.
Command error. The IEEE-488 interface of the 5502A 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.)
Execution error. An error occurred while the 5502A 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 occurred.)
Device-dependent error. An error related to a device-dependent command has
occurred.
Query error. The 5502A was addressed to talk when no response data was available
or appropriate, or when the controller failed to retrieve data on the output queue.
Operation complete. All commands previous to reception of a *OPC c ommand have
been executed, and the interface is ready to accept another message.
Figure 5-10. Event Status Register (ESR) and Event Status Enable (ESE)
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
12
11
0
0
4
3
EXE
DDE
QYE
! 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
2
1
0
OPC
8
0
0
gjh048.eps

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents