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 END-OF-SWEEP interrupt, then return trace data when the sweep has ended.

10

OPTION

BASE 1

De￿ne ￿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

De￿ne computer-interrupt

 

 

 

 

branching.

80

ENABLE

INTR 7;2

 

Enable interrupts.

90

OUTPUT

@Sa;"RQS

4;"

Enable END-OF-SWEEP ser-

 

 

 

 

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 service-request line

 

 

 

 

while controlling other de-

 

 

 

 

vices via HP-IB.

140!

150END

160!

170

SUB Trace_out

Trace-output subprogram.

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

 

4-8