Agilent Technologies 1660AS TV Converter Box User Manual


 
320 CLEAR @Isc !clear GPIB interface
330 OUTPUT @Scope;":SELECT 2" !select the oscilloscope
340 OUTPUT @Scope;"*RST" !set oscilloscope to default config
350 OUTPUT @Scope;":AUTOSCALE" !AUTOSCALE
360 OUTPUT @Scope;":SYST:HEADER OFF" !turn headers off
370 CLEAR SCREEN !clear screen
380 RETURN
390 !
400 !DIGITIZE waveform to acquire data and stop oscilloscope for further
410 !measurement. Measurement is NOT displayed on the front panel.
420 !
430 Get_waveform:
440 OUTPUT @Scope;":WAVEFORM:SOURCE CHAN1" !set source to channel 1
450 OUTPUT @Scope;":DIGITIZE" !macro to acquire data & stop
460 RETURN
470 !
480 !have oscilloscope do a frequency measurement and read results into
490 !computer.
500 !
510 Measure:
520 OUTPUT @Scope;":MEASURE:FREQUENCY?" !FREQUENCY query
530 ENTER @Scope;Value !read from oscilloscope
540 PRINT "FREQUENCY = ";Value;"Hz"
550 OUTPUT @Scope;":MEASURE:VPP?" !Vpp query
560 ENTER @Scope;Value
570 PRINT "Vpp = ";Value;"V"
580 RETURN
590 END
Programming Examples
Using Sub-routines in a measurement program
36–34