Monitoring System Operation
Monitoring System Operation
The next program uses service requests to allow the computer to process data or control other instruments while the analyzer is taking a long sweep. When the sweep is completed, the analyzer generates a service request which interrupts the computer, instructing it to accept the measurement data from the analyzer.
Example Enable
10 | OPTION | BASE 1 | Dene rst element of ar- |
|
|
| ray as \1." |
20 | ASSIGN | @Sa TO 723 | Initialize analyzer. |
30 | COM\INSTR\@Sa |
|
40COM Trace_a(800)
50CLEAR @Sa
60OUTPUT @Sa;"IP;SNGLS;TS;"
70 | ON INTR | 7 CALL | Trace_out | Dene |
|
|
|
| branching. |
80 | ENABLE | INTR 7;2 |
| Enable interrupts. |
90 | OUTPUT | @Sa;"RQS | 4;" | Enable |
|
|
|
| vice request. |
100 | OUTPUT | @Sa;"ST | 100S;" | Set sweep time to 100 seconds. |
110 | OUTPUT | @Sa;"TS;" | Sweep analyzer. | |
120 | ! |
|
|
|
130 | Idle: GOTO | Idle | Monitor | |
|
|
|
| while controlling other de- |
|
|
|
| vices via |
140!
150END
160!
170 | SUB Trace_out | |
180 | OPTION BASE 1 |
|
190 | COM\INST\@Sa |
|
200 | COM Trace_a(800) |
|
210 | OUTPUT @Sa;"TRA?;" | Return trace data. |
220 | ENTER @Sa;Trace_a(*) |
|
230 | SUBEND |
|