Keysight N432A Programming Manual page 101

Thermistor power meter
Hide thumbs Also See for N432A:
Table of Contents

Advertisement

80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
service it.
230
240
250
260
270
280
290
300
310
320
330
340
350
360
370
380
Keysight N432A Programming Guide
!
! Configure the device status register so that a sensor
! connect or disconnect on channel A will cause an SRQ.
!
OUTPUT @Pm;"STAT:DEV:ENAB 2"
OUTPUT @Pm;"STAT:DEV:NTR 2"
OUTPUT @Pm;"STAT:DEV:PTR 2"
OUTPUT @Pm;"*SRE 2"
!
ENABLE INTR 7;2
LOOP
! Forever
END LOOP
!
! When an SRQ is detected, the following routine will
!
Srq_i:
!
St=SPOLL(@Pm)
IF BIT(St,1)=1 THEN
OUTPUT @Pm;"STAT:DEV:EVEN?"
ENTER @Pm;Event
OUTPUT @Pm;"STAT:DEV:COND?"
ENTER @Pm;Cond
IF Cond=0 THEN
PRINT "Sensor disconnected"
ELSE
PRINT "Sensor connected"
END IF
END IF
GOTO 170
END
! Enable an SRQ to cause an interrupt
! Idle loop
! Serial Poll (reads status byte)
! Device status reg bit set ?
! Return to idle loop
N432A Remote Operation
! Yes , read register
! (this also clears it)
1
101

Advertisement

Table of Contents
loading

Table of Contents