Sample
Program
4339B
Sample Program
The
following
sample
program
measures
resistivity
of
insulation
lm
using
the
16008B
Resistivity
Cell
with
50
mm
main
electrode
.
Warning
Do
NOT
touch the
UNKNOWN
terminals or
the electrodes
of
the
accessory
,
when
the High
Voltage
indicator is
ON, the
4339B
outputs
dangerous
voltage
levels up
to 1000
Vdc. Before
handling the
4339B
or
the
accessory
, conrm
that the
High V
oltage indicator
is
OFF
.
10
ASSIGN
@Hp4339
TO
717
20
!
30
OUTPUT
@Hp4339;"*RST;*CLS"
40
OUTPUT
@Hp4339;":INIT:CONT
ON"
50
!
60
DISP
"Calibration"
70
OUTPUT
@Hp4339;":CAL?"
80
ENTER
@Hp4339;A
90
DISP
100
IF A<>0
THEN
110
PRINT "Error:",A
120
PAUSE
130
END IF
140
!
150
DISP
"Separate
each
electrode
and
close
the
top
cover,
then
press
`Continue'."
160
PAUSE
170
DISP
"OPEN
Correction"
180
OUTPUT
@Hp4339;":SENS:FUNC
'CURR'"
185
OUTPUT
@Hp4339;":SENS:CURR:APER
0.39'"
190
OUTPUT
@Hp4339;":SOUR:VOLT
500"
200
OUTPUT
@Hp4339;":OUTP
ON"
210
REPEAT
220
OUTPUT
@Hp4339;"FETC?"
230
ENTER
@Hp4339;S,D
240
UNTIL
ABS(D)<5.E-13
250
OUTPUT
@Hp4339;":SENS:CORR:COLL
OFFS"
260
OUTPUT
@Hp4339;"*OPC?"
270
ENTER
@Hp4339;A
280 OUTPUT @Hp4339;":OUTP OFF"
290 DISP "Confirm that the High Voltage indicator is OFF,
then press `Continue'."
300 PAUSE
310 DISP "Place DUT and close the top cover, then press
`Continue'."
320 PAUSE
330 DISP
340 !
350 OUTPUT @Hp4339;":ARM:SOUR BUS"
360 OUTPUT @Hp4339;":ARM:DEL 60"
370 OUTPUT @Hp4339;":TRIG:SOUR INT"
380 !
390 OUTPUT @Hp4339;":CALC:RES:STH 0.002"
4-28 Remote Operation