Download Operators Manual
Transcript
Remote Operation Checking 5790A Status 5 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 ! LOAD THE REGISTER ! ASK FOR THE SRE CONTENTS ! RETRIEVE THE REGISTER CONTENTS 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" ! 1300V IS OUT OF 5790A RANGE 30 A% = SPL(6) ! DO A SERIAL POLL 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" ! RETRIEVE BYTE 5-15