HP E4418B Programming Manual page 102

Power meters
Hide thumbs Also See for E4418B:
Table of Contents

Advertisement

Power Meter Remote Operation
Status Reporting
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
200
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)
280
IF BIT(St,7)=1 THEN
290
OUTPUT @Pm;"STAT:OPER?"! Yes , read register
300
ENTER @Pm;Oper
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
360
END
1-78
! Enable an SRQ to cause an interrupt
! Idle loop
! Serial Poll (reads status byte)
! Operation status bit set?
! (this also clears it)
! Return to idle loop
HP E4418B/E4419B Programming Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

E4419b

Table of Contents