EasyManua.ls Logo

Keysight N1911A

Keysight N1911A
771 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Power Meter Remote Operation 1
N1911A/1912A P-Series Power Meters Programming Guide 79
Example 2:
10 ! Program to generate an SRQ when an over limit
20 ! condition occurs.
30 !
40 ASSIGN @Pm TO 713 ! Power meter GPIB address
50 ON INTR 7 GOTO Srq_i ! Define service request handler
60 CLEAR @Pm ! Selective device clear
70 OUTPUT @Pm;”*CLS” ! Clear registers
80 OUTPUT @Pm;”SYST:PRES” ! Preset meter
90 !
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;”CALC:LIM:UPP 2DBM”
140 OUTPUT @Pm;”CALC: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

Table of Contents

Other manuals for Keysight N1911A

Related product manuals