Test 2-1: DC Zeros (cont’d)
Example Program

This program performs the DC Zeros test. An arbitrary waveform, consisting of zeros, is used with various

amplitudes to test a variety of attenuator and filter combination s .

10! RE-STORE "DC_ZEROS"
20 COM @Afg
30 DIM Attn(1:9),Vout(1:9)
40 !
50 !---------- Set up I/O path and reset AFG ----------
60 ASSIGN @Afg TO 70910
70 OUTPUT @Afg;"*RST;*CLS" !Reset AFG
80 !
90 !---------- Ini tialize variables ----------
100 DATA 0,.99,1,2,4,8,13,14,30
110 READ Attn(*) !Read in attenuations
120 !
130 DATA 10.2375,9.13469,9.12416,8.13192,6. 45941,4.0756
140 DATA 2.29187,2.04263,0.32372
150 READ Vout(*)
160 !
170 !---------- Set u p DMM ----------
180 PRINT "Set up DMM:"
190 PRINT
200 PRINT " Function -- DCV"
210 PRINT " Range -- 100 mV"
220 PRINT
230 PRINT "Connect DMM HI and LO to AFG Output."
240 DISP "Press ’Continue’ when ready"
250 PAUSE
260 CLEAR SCREEN
270 !
280 !---------- Set u p A F G ----------
290 OUTPUT @Afg;"*RST" !Reset AFG
300 OUTPUT @Afg;"LIST:SSEQ:DEL:ALL" ! Delete all sequences
310 OUTPUT @A fg;"LIST:SEGM:DEL :ALL" !Delete all segments
320 WAIT .5
330 OUTPUT @Afg;"ROSC:SOUR CLK10;"; !10MHZ clock
340 OUTPUT @Afg;":VOLT MAX;"; !MAX output
350 OUTPUT @Afg;":OUTP:LOAD INF;"; !Infinite load
360 OUTPUT @Afg;":FUNC USER" !User waveform
370 !
380 CALL Def_seq_zeros !De fine waveform
390 OUTPUT @Afg;"FUNC:USER DC_ZEROS" !Select sequence
400 OUTPUT @Afg;"INIT:IMM"
410 !
420 !---------- Per form test ----------
430 PRINT "ATTEN","FILTER","AMPLITUDE"
(Continued on next page)
36 Verification Te sts Agilent E1445A Serv ice Manual