Executing Self-Test and Leak Test

Executing Self-Test

Self-Test Programming Example

This sample program is effective for an E5250A that has four cards installed. If your E5250A does not have four cards installed, delete the Relay Test program lines for the empty card slots. The program runs on HP BASIC.

10! Self-Test by External Controller

20!

30

REAL A

@Hp5250 TO 722

40

ASSIGN

50OUTPUT @Hp5250;":DIAG:TEST:FRAM:CLE CONT"

60OUTPUT @Hp5250;":DIAG:TEST:FRAM:CLE FPAN"

70OUTPUT @Hp5250;":DIAG:TEST:CARD:CLE ALL"

80DISP "Press Continue to go to Controller Test."

90PAUSE

100! Controller Test

110OUTPUT @Hp5250;":DIAG:TEST:FRAM:EXEC? CONT"

120ENTER @Hp5250;A

130IF A=0 THEN GOTO 160

140DISP "Failed. Press Continue to go to I/F Test."

150GOTO 170

160DISP "Passed. Press Continue to go to I/F Test."

170PAUSE

180! Front Panel I/F Test

190OUTPUT @Hp5250;":DIAG:TEST:FRAM:EXEC? FPAN"

200DISP "Press Local/Self Test Key within 10 sec."

210ENTER @Hp5250;A

220IF A=0 THEN GOTO 250

230DISP "Failed. Press Continue to go to Relay Test."

240GOTO 260

250DISP "Passed. Press Continue to go to Relay Test."

260PAUSE

270! Relay Test

280OUTPUT @Hp5250;":DIAG:TEST:CARD:EXEC? 1"

290ENTER @Hp5250;A

300IF A=0 THEN GOTO 330

310DISP "Card 1 failed. Press Continue to test Card 2"

320GOTO 340

330DISP "Card 1 passed. Press Continue to test Card 2"

340PAUSE

350OUTPUT @Hp5250;":DIAG:TEST:CARD:EXEC? 2"

360ENTER @Hp5250;A

370IF A=0 THEN GOTO 400

380DISP "Card 2 failed. Press Continue to test Card 3"

390GOTO 410

400DISP "Card 2 passed. Press Continue to test Card 3"

410PAUSE

420OUTPUT @Hp5250;":DIAG:TEST:CARD:EXEC? 3"

3-8

Agilent E5250A User’s Guide, Edition 9

Page 58
Image 58
Agilent Technologies Agilent E5250A manual Self-Test Programming Example, Assign