Test 2-3: dc offset (cont’d) – Agilent Technologies 75000 Series C User Manual
Page 45

Test 2-3: DC Offset (cont’d)
Example Program
This program performs the DC Offset Test.
10! RE-STORE "DC_OFFSET"
20 COM @Afg
30 DIM Offset(1:6)
40 !
50 !---------- Set up I/O path and reset AFG ----------
60 ASSIGN @Afg TO 70910
!AFG I/O path
70 OUTPUT @Afg;"*RST;*CLS"
!Reset AFG
80 !
90 !---------- Initialize variables ----------
100 DATA 9.755,4.0,-4.0,-9.755,2.0,-2.0
110 READ Offset(*)
!Read in offsets
120 !
130 Vout_old=0
!Initialize
140 !
150 !---------- Set up DMM ----------
160 CLEAR SCREEN
170 PRINT "Set up DMM:"
180 PRINT
190 PRINT " Function -- DCV"
200 PRINT " Range -- AUTO"
210 PRINT
220 PRINT "Connect DMM HI and LO to AFG Output."
230 DISP "Press ’Continue’ when ready"
240 PAUSE
250 CLEAR SCREEN
260 !
270 !---------- Set up AFG ----------
280 OUTPUT @Afg;"*RST"
!Reset AFG
290 OUTPUT @Afg;"LIST:SSEQ:DEL:ALL"
!Delete all sequences
300 OUTPUT @Afg;"LIST:SEGM:DEL:ALL"
!Delete all segments
310 WAIT .5
320 OUTPUT @Afg;"ROSC:SOUR CLK10;";
!10MHz clock
330 OUTPUT @Afg;":OUTP:LOAD INF;";
!Infinite load
340 OUTPUT @Afg;":VOLT MAX;";
!MAX output
350 OUTPUT @Afg;":FUNC USER"
!User waveform
360 !
370 CALL Def_seq_zeros
!Define sequence of zeros
380 OUTPUT @Afg;"FUNC:USER DC_ZEROS"
!Select sequence
390 !
400 !---------- Perform test ----------
410 PRINT "AMPLITUDE"," OFFSET"
420 PRINT
430 !
(Continued on next page)
Agilent E1445A Service Manual
Verification Tests 43