Monitoring System Operation
Monitoring System Operation
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
10 ASSIGN @Sa TO 723 | Initialize analyzer. |
20COM\INSTR\@Sa
30CLEAR @Sa
40OUTPUT @Sa;"IP;SNGLS;TS;"
50 | ON INTR 7 CALL Error | Dene computer interrupt branching. | |
60 | ENABLE | INTR 7;2 | Enable computer interrupts. |
70 | OUTPUT | @Sa;"RQS 32;" | Enable |
80 | ! |
|
|
90 | Idle:GOTO Idle | Monitor service request line while measur- | |
|
|
| ing. |
|
|
| (This is where your measurement routine |
|
|
| belongs.) |
100!
110END
130 | SUB Error | |
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