HP E1340A Service Manual page 36

Function generator
Hide thumbs Also See for E1340A:
Table of Contents

Advertisement

Example Program
10! RE-STORE "AC_LEVELS"
20
DIM Vout(1:7)
30
!
40
!---------- Set up I/O path ----------
50
ASSIGN @Afg TO 70910
60
!
70
!---------- Initialize variables ----------
80
DATA 7.239,6.45,5.75,4.566,2.881,1.440,.229
90
READ Vout(*)
100
!
110
!---------- Set up DMM ----------
120
CLEAR SCREEN
130
PRINT "Set up DMM:"
140
PRINT
150
PRINT "
160
PRINT "
170
PRINT
180
PRINT "Connect DMM HI and LO to AFG Output."
190
DISP "Press 'Continue' when ready"
200
PAUSE
210
CLEAR SCREEN
220
!
230
!---------- Set up AFG ----------
240
OUTPUT @Afg;"*RST;*CLS"
250
WAIT .5
260
OUTPUT @Afg;"FREQ 1E3;";
270
OUTPUT @Afg;":OUTP:LOAD INF"
280
OUTPUT @Afg;"VOLT:UNIT VRMS"
290
OUTPUT @Afg;"INIT:IMM"
300
WAIT .5
310
!
320
!---------- Perform test ----------
330
FOR I=1 TO 7
340
350
360
370
380
390
400
410
420
NEXT I
430
!
440
END
38 Verification Tests
Function - ACV"
Range - AUTO"
OUTPUT @Afg;"VOLT "&VAL$(Vout(I))
PRINT "OUTPUT VOLTAGE =";Vout(I)
WAIT .5
!
DISP "Record DMM reading, then press 'Continue'"
PAUSE
DISP
!
!Reset AFG
!Set freq to 1 kHz
!Infinite load
!Set units to VRMS
!Initiate
!Set amplitude
Chapter 2

Advertisement

Table of Contents
loading

Table of Contents