User`s guide

Table Of Contents
86 Chapter 5
Making a Measurement
Waiting for the End of Measurement
Example 5-1 Using an SRQ to Detect the End of Measurement (srq_meas.htb)
10 DIM Cont_mode$(1:4)[9],Buff$[9]
20 INTEGER I
30 !
40 ASSIGN @Agte507x TO 717
50 !
60 Cont_mode$(1)="ON"
70 Cont_mode$(2)="ON"
80 Cont_mode$(3)="OFF"
90 Cont_mode$(4)="OFF"
100 !
110 FOR I=1 TO 4
120 OUTPUT @Agte507x;":INIT"&VAL$(I)&":CONT "&Cont_mode$(I)
130 NEXT I
140 OUTPUT @Agte507x;":TRIG:SOUR BUS"
150 !
160 OUTPUT @Agte507x;":STAT:OPER:PTR 0"
170 OUTPUT @Agte507x;":STAT:OPER:NTR 16"
180 OUTPUT @Agte507x;":STAT:OPER:ENAB 16"
190 OUTPUT @Agte507x;"*SRE 128"
200 OUTPUT @Agte507x;"*CLS"
210 OUTPUT @Agte507x;"*OPC?"
220 ENTER @Agte507x;Buff$
230 !
240 ON INTR 7 GOTO Meas_end
250 ENABLE INTR 7;2
260 OUTPUT @Agte507x;"*TRG"
270 PRINT "Waiting..."
280 Meas_wait: GOTO Meas_wait
290 Meas_end: OFF INTR 7
300 PRINT "Measurement Complete"
310 END