EasyManua.ls Logo

Agilent Technologies 4288A

Agilent Technologies 4288A
289 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 8 99
Avoiding Mistakes Related to Work and Daily Checks
Daily Checks (executing the self-test)
8. Avoiding Mistakes Related
to Work and Daily Checks
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

Table of Contents

Related product manuals