Test 2-1: dc zeros (cont’d) – Agilent Technologies 75000 Series C User Manual
Page 38

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 combinations.
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 !---------- Initialize 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 up 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 up AFG ----------
290 OUTPUT @Afg;"*RST"
!Reset AFG
300 OUTPUT @Afg;"LIST:SSEQ:DEL:ALL"
!Delete all sequences
310 OUTPUT @Afg;"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
!Define waveform
390 OUTPUT @Afg;"FUNC:USER DC_ZEROS"
!Select sequence
400 OUTPUT @Afg;"INIT:IMM"
410 !
420 !---------- Perform test ----------
430 PRINT "ATTEN","FILTER","AMPLITUDE"
(Continued on next page)
36 Verification Tests
Agilent E1445A Service Manual