Monitoring System Operation

Monitoring System Operation

Service-Request Examples

The following program uses service requests to monitor measurement errors in the analyzer. If an error occurs, computer operation is interrupted and a description of the error is printed.

Example Enable ERROR-PRESENT service request and return error description.

10 ASSIGN @Sa TO 723

Initialize analyzer.

20COM\INSTR\@Sa

30CLEAR @Sa

40OUTPUT @Sa;"IP;SNGLS;TS;"

50

ON INTR 7 CALL Error

De￿ne computer interrupt branching.

60

ENABLE

INTR 7;2

Enable computer interrupts.

70

OUTPUT

@Sa;"RQS 32;"

Enable ERROR-PRESENT service request.

80

!

 

 

90

Idle:GOTO Idle

Monitor service request line while measur-

 

 

 

ing.

 

 

 

(This is where your measurement routine

 

 

 

belongs.)

100!

110END

130

SUB Error

Interrupt-handling subroutine.

140

COM\INST\@Sa

 

150

DIM Mod_num$[6],Err_text$[30]

 

160

OUTPUT @Sa;"XERR?;"

Return error description.

170 ENTER @Sa USING"5(K)";Error_num,

Mod_num$,Row_num,Col_num,Err_text$

180 PRINT Error_num;Mod_num$;

Row_num;Col_num;Err_text$

190 SUBEND

4-7