Programming The Stb And Sre - Fluke 5790B/3 Operator's Manual

Table of Contents

Advertisement

5-29. Programming the STB and SRE

By resetting (to 0) the bits in the SRE, you can mask (disable) associated bits in the serial
poll status byte. Bits set to 1 enable the associated bit in the serial poll status byte. The
following sample program enables the Error Available (EAV) bit.
10
! THIS PROGRAM SETS EAV IN THE SRE
20
PRINT @6,"*SRE 16"
30
PRINT @6, "*SRE?"
40
INPUT @6, A%
50
PRINT "SRE = ";A%
60
RETURN
The following program generates an error and checks the Serial Poll StatusByte. Enable
the EAV bit with the examples above.
10
! THIS PROGRAM GENERATES AN ERROR AND CHECKS IT
20
PRINT @6, "RANGE 1300V"
30
A% = SPL(6)
40
IF ((A% AND 80%)=0%)THEN PRINT "EAV and RQS should have been set"
50
PRINT @6, "STB?"
60
INPUT @6, A%
70
IF ((A% AND 16%)=0%) THEN PRINT "EAV should have been set"
! LOAD THE REGISTER
! ASK FOR THE SRE CONTENTS
! RETRIEVE THE REGISTER CONTENTS
! 1300V IS OUT OF 5790A RANGE
! DO A SERIAL POLL
! RETRIEVE BYTE
Remote Operation
Checking 5790A Status
5
5-15

Advertisement

Table of Contents
loading

This manual is also suitable for:

5790b5790a5790b/5

Table of Contents