Agilent Technologies A.18.00 Weather Radio User Manual


 
300
S:\agilent\8920\8920b\PRGGUIDE\BOOK\CHAPTERS\advoper.fb
Chapter 5, Advanced Operations
GPIB Service Requests
410 ! Bit 0: Spec Anal Self-cal failed decimal value = 2^0 = 1
420 !
430 Calibration_reg=16+8+4+2+1
440 !
450 ! Set the Transition Filters to allow only positive transitions in
460 ! the assigned condition(s) to pass to the Event Register
470 !
480 OUTPUT Inst_address;"STAT:CAL:PTR";Calibration_reg
490 OUTPUT Inst_address;"STAT:CAL:NTR 0"
500 !
510 ! Set up the Calibration Status Register Group Enable Register to
520 ! generate the Summary Message.
530 !
540 OUTPUT Inst_address;"STAT:CAL:ENAB";Calibration_reg
550 !
560 ! The Calibration Status Register Group Summary Message is passed to
570 ! the Status Byte Register through Bit 8 in the Questionable
580 ! Data/Signal Register Group Condition Register. The Questionable
590 ! Data/Signal Register Group must be configured to set its Summary
600 ! Message TRUE if the Summary Message from the Calibration Status
610 ! Register Group is TRUE. Therefore Bit 8 (2^8=256) in the Questionable
620 ! Data/Signal Register Group Enable Register must be set HIGH.
630 !
640 OUTPUT Inst_address;"STAT:QUES:ENAB 256"
650 !
660 ! 3) Hardware Status Register #1 Group
670 ! Condition register conditions which will set the Summary Message
680 ! TRUE if they occur:
690 ! Bit 5: Measurement limits exceeded decimal value = 2^5 = 32
700 ! Bit 4: Power-up Self-test failed decimal value = 2^4 = 16
710 ! Bit 3: Overpower protection tripped decimal value = 2^3 = 8
720 !
730 Hardware1_reg=32+16+8
740 !
750 ! Set the Transition Filters to allow only positive transitions in
760 ! the assigned condition(s) to pass to the Event Register
770 !
780 OUTPUT Inst_address;"STAT:HARD1:PTR";Hardware1_reg
790 OUTPUT Inst_address;"STAT:HARD1:NTR 0"
800 !
810 ! Set up the Hardware Status Register #1 Group Enable Register to
820 ! generate the Summary Message.
830 !
840 OUTPUT Inst_address;"STAT:HARD1:ENAB";Hardware1_reg
850 !
860 ! 4) Set the correct Summary Message bit(s) in the Service Request
870 ! Enable Register to generate a Service Request (SRQ) if the
880 ! Summary Message(s) become TRUE.
890 ! Bit 5 = Standard Event Status Register Summary Message