prog.book : chapter1.fm 78 Mon Feb 15 09:24:37 1999
Power Meter Remote Operation
Status Reporting
1-78
HP E4418B/E4419B Programming Guide
100
! Set upper limit to 2dBm and configure the operation
status
110 ! so that an over limit condition will cause an SRQ.
120 !
130 OUTPUT @Pm;”SENS:LIM:UPP 2DBM”
140 OUTPUT @Pm;”SENS:LIM:STAT ON”
150 OUTPUT @Pm;”STAT:OPER:PTR 4096”
160 OUTPUT @Pm;”STAT:OPER:ENAB 4096”
170 OUTPUT @Pm;”*SRE 128”
180 !
190 ENABLE INTR 7;2 ! Enable an SRQ to cause an interrupt
200 LOOP ! Idle loop
210 ! Forever
220 END LOOP
230 !
240 ! When a SRQ is detected , the following routine will
service it.
250 !
260 Srq_i: !
270 St=SPOLL(@Pm) ! Serial Poll (reads status byte)
280 IF BIT(St,7)=1 THEN ! Operation status bit set?
290 OUTPUT @Pm;”STAT:OPER?”! Yes , read register
300 ENTER @Pm;Oper ! (this also clears it)
310 OUTPUT @Pm;”STAT:OPER:ULF?”
320 ENTER @Pm;Ulf
330 IF Ulf=2 THEN PRINT “Over limit detected”
340 END IF
350 GOTO 190 ! Return to idle loop
360 END
Summary of Contents for E4418B
Page 25: ...prog book chapter1 fm 1 Mon Feb 15 09 24 37 1999 1 Power Meter Remote Operation ...
Page 138: ...prog book ch2meas fm 1 Mon Feb 15 09 24 37 1999 2 MEASurement Instructions ...
Page 200: ...prog book ch3calc fm 1 Mon Feb 15 09 24 37 1999 3 CALCulate Subsystem ...
Page 228: ...prog book ch4cal fm 1 Mon Feb 15 09 24 37 1999 4 CALibration Subsystem ...
Page 242: ...prog book ch5disp fm 1 Mon Feb 15 09 24 37 1999 5 DISPlay Subsystem ...
Page 260: ...prog book ch6form fm 1 Mon Feb 15 09 24 37 1999 6 FORMat Subsystem ...
Page 264: ...prog book ch7mem fm 1 Mon Feb 15 09 24 37 1999 7 MEMory Subsystem ...
Page 294: ...prog book ch8out fm 1 Mon Feb 15 09 24 37 1999 8 OUTput Subsystem ...
Page 302: ...prog book ch9sens fm 1 Mon Feb 15 09 24 37 1999 9 SENSe Subsystem ...
Page 360: ...prog book ch10stat fm 1 Mon Feb 15 09 24 37 1999 10 STATus Subsystem ...
Page 384: ...prog book ch11syst fm 1 Mon Feb 15 09 24 37 1999 11 SYSTem Subsystem ...
Page 420: ...prog book ch12trig fm 1 Mon Feb 15 09 24 37 1999 12 TRIGger Subsystem ...
Page 434: ...prog book ch13unit fm 1 Mon Feb 15 09 24 37 1999 13 UNIT Subsystem ...
Page 442: ...prog book ch14serv fm 1 Mon Feb 15 09 24 37 1999 14 SERVice Subsystem ...
Page 452: ...prog book ch15ieee fm 1 Mon Feb 15 09 24 37 1999 15 IEEE488 2 Command Reference ...
Page 481: ...prog book progIX doc 6 Mon Feb 15 09 24 37 1999 Index 6 HP E4418B E4419B Programming Guide ...