Chapter 8
99
Avoiding Mistakes Related to Work and Daily Checks
Daily Checks (executing the self-test)
8
. A
v
oi
di
n
g
M
is
tak
es
Re
la
te
d
to W
o
rk
a
nd D
a
ily
Chec
k
s
Sample program
Example 8-1 shows a sample program to execute the self-test. This program is stored on
the sample program disk under the filename “selftest.bas”.
This program executes the self-test and displays the result.
Line 30
Sets the GPIB address.
Lines 50 to 70
Executes the self-test and reads out the result.
Line 100
If the error code is 0, displays the “ALL TEST PASS” message.
Lines 120 to 320 If the error code is not 0, displays the test item that has failed.
Example 8-2
Executing the self-test (selftest.bas)
10
INTEGER Result
20
!
30
ASSIGN @Agt4288a TO 717
40
!
50
PRINT "Now testing..."
60
OUTPUT @Agt4288a;"*TST?"
70
ENTER @Agt4288a;Result
80
!
90
IF Result=0 THEN
100
PRINT "ALL TEST PASS"
110
ELSE
120
IF BIT(Result,0)=1 THEN
130
PRINT "TEST FAIL: RAM"
140
END IF
150
IF BIT(Result,1)=1 THEN
160
PRINT "TEST FAIL: Boot ROM"
170
END IF
180
IF BIT(Result,2)=1 THEN
190
PRINT "TEST FAIL: Flash ROM"
200
END IF
210
IF BIT(Result,3)=1 THEN
220
PRINT "TEST FAIL: Factory Cal. Data"
230
END IF
240
IF BIT(Result,4)=1 THEN
250
PRINT "TEST FAIL: Compensation Data"
260
END IF
270
IF BIT(Result,5)=1 THEN
280
PRINT "TEST FAIL: A/D Converter"
290
END IF
300
IF BIT(Result,6)=1 THEN
310
PRINT "TEST FAIL: Back-up RAM"
320
END IF
330
END IF
340
END
Summary of Contents for 4288A
Page 18: ...16 Chapter1 Making Effective Use of This Manual How To Use This Manual ...
Page 212: ...210 AppendixA Manual Changes Manual Changes ...
Page 248: ...246 AppendixB Information for Replacing 4278A with 4288A Comparison of Interfaces ...
Page 258: ...256 AppendixC Status Reporting System Using the Status Reporting System ...
Page 288: ...286 Index Index ...