
69
────────────────────────────────────────────────────
────────────────────────────────────────────────────
Chapter 6
Sample Programs
The following sample programs are all written for the Hewlett-Packard
HP9000 Series 300, using BASIC 4.0.
All commands in the sample programs are used in the short form, and the
GP-IB device address of the 3157 is taken as 1.
(1) Basic settings and testing
This program sets the 3157 to the following test values:
・
Output current value: 25.0 A
・
Maximum test value: 0.100
Ω
・
Test time: 60.0 s
It carries out a single test measurement, and displays the result on the screen.
Program List
100
DIM A$[10],B$[10],C$[40]
110 Statecheck1:
!
120
OUTPUT 701;":STAT?"
130
ENTER 701;A$
140
IF A$="READY" THEN GOTO Setting
150
OUTPUT 701;":STOP"
160
GOTO Statecheck1
170 Setting:
!
180
OUTPUT 701;"HEAD OFF"
190
OUTPUT 701;"CONF:CURR 25.0"
200
OUTPUT 701;"UNIT OHM"
210
OUTPUT 701;"UPP ON"
220
OUTPUT 701;"CONF:RUPP 0.100"
230
OUTPUT 701;"TIM ON"
240
OUTPUT 701;"CONF:TIM 60.0"
250
OUTPUT 701;":ESE0 8;*SRE 1"
260
ON INTR 7 GOSUB Interrupt
270
D=0
280
F=0
290
OUTPUT 701;"*CLS"
300
ENABLE INTR 7;2
310 Keyin:
!
320
INPUT "PRESS ANY KEY TO START",B$
330
OUTPUT 701;":STAR"
340 Statecheck2: !
350
IF F=0 THEN GOTO Statecheck2
360 Result: !
370
OUTPUT 701;":ESE0 0;*SRE 0"
Summary of Contents for 9518-02
Page 1: ...GP IB INTERFACE INSTRUCTION MANUAL 9518 02 3157 AC GROUNDING HiTESTER...
Page 2: ......
Page 6: ...ii Introduction...
Page 74: ...68 5 6 Initialization Items...
Page 84: ...78...