HP E1340A Service Manual page 65

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

Advertisement

Example Program
10 ! RE-STORE "DC_ADJUST"
30
!This program performs the firmware-guided DC adjustment procedure
40
!for the HP E1340A Arbitrary Function Generator. An HP 3458A DMM
50
!is required.
60
!
70
COM @Afg,@Dmm
80
DIM Results(1:14),Id$[100]
90
INTEGER This_point,Max_cal_point,Problem,Err_num
100
!
110
!---------- Set up I/O paths ----------
120
ASSIGN @Afg TO 70910
130
ASSIGN @Dmm TO 722
140
!
150
!
160
!---------- Initialize variables ----------
170
Max_cal_point=14
180
This_point=0
190
!
200
!---------- Check firmware rev ----------
210
OUTPUT @Afg;"*IDN?"
220
ENTER @Afg;Id$
230
IF POS(Id$,"A.01.00") THEN
240
250
260
270
END IF
280
!
290
!---------- Initialize AFG and DMM ----------
300
OUTPUT @Afg;"*RST;*CLS"
310
WAIT .5
320
!
330
OUTPUT @Dmm;"PRESET NORM"
340
OUTPUT @Dmm;"FUNC DCV;NPLC 10;RANGE 1"
350
!
360
!---------- Connections ----------
370
CLEAR SCREEN
380
PRINT "Connect the DMM to the AFG Output"
390
DISP "Press 'Continue' when ready"
400
PAUSE
410
CLEAR SCREEN
420
!
430
!---------- Setup AFG ----------
440
OUTPUT @Afg;"CAL:DC:BEGIN"
450
WAIT 1
460
OUTPUT @Afg;"*OPC?"
470
ENTER @Afg;Not_busy
480
!
Chapter 3
BEEP 1000,.2
PRINT "This procedure requires a firmware revision of A.01.02 or later."
STOP
(Continued on Next Page)
!Begin DC cal
!Wait for previous command to finish
Adjustments 67

Advertisement

Table of Contents
loading

Table of Contents