Keysight Technologies EPM-P Series Programming Manual page 101

Power meters
Hide thumbs Also See for EPM-P Series:
Table of Contents

Advertisement

310
320
330
340
350
360
370
380
Example 2:
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260 Srq_i:
Keysight EPM-P Series Programming Guide
IF Cond=0 THEN
PRINT "Sensor disconnected"
ELSE
PRINT "Sensor connected"
END IF
END IF
GOTO 170
END
! Program to generate an SRQ when an over limit
! condition occurs.
!
ASSIGN @Pm TO 713
ON INTR 7 GOTO Srq_i
CLEAR @Pm
OUTPUT @Pm;"*CLS"
OUTPUT @Pm;"SYST:PRES" ! Preset meter
!
! Set upper limit to 2dBm and configure the operation
status
! so that an over limit condition will cause an SRQ.
!
OUTPUT @Pm;"SENS:LIM:UPP 2DBM"
OUTPUT @Pm;"SENS:LIM:STAT ON"
OUTPUT @Pm;"STAT:OPER:PTR 4096"
OUTPUT @Pm;"STAT:OPER:ENAB 4096"
OUTPUT @Pm;"*SRE 128"
!
ENABLE INTR 7;2
LOOP
! Forever
END LOOP
!
! When a SRQ is detected , the following routine will
service it.
!
!
Power Meter Remote Operation
! Return to idle loop
! Power meter GPIB address
! Define service request handler
! Selective device clear
! Clear registers
! Enable an SRQ to cause an interrupt
! Idle loop
1
101

Advertisement

Table of Contents
loading

Table of Contents