7-22 Chapter7
Programming Examples
Measurement Setup Examples
280 ENTER @Nwa;Flag
290 PRINT "Flag =";Flag;" ";
300 IF Flag=1 THEN ! Test flag and print analyzer state
310 PRINT "Averaging ON"
320 ELSE
330 PRINT "Averaging OFF"
340 END IF
350 !
360 OUTPUT @Nwa;"OPC?;WAIT;" ! Wait for the analyzer to finish
370 ENTER @Nwa;Reply ! Read the 1 when complete
380 LOCAL @Nwa ! Release HP-IB control
390 END