Programming example, Before executing your program, Error messages – Agilent Technologies Agilent E5250A User Manual

Page 168

Advertising
background image

6-32

Agilent E5250A User’s Guide, Edition 11

Programming the E5250A
Using the Capacitance Compensation Routine

Programming Example

The following program is an example for using the capacitance compensation
subprogram:

100 ! Example of Capacitance Compensation

110 !

120 Freq=1.E+6 ! MEASUREMENT FREQUENCY: 1MHz

130 L1=1.5 ! E5252A OUTPUT CABLE: 1.5m

140 L2_h=0 ! TRIAX CABLE High SIDE: none (0m)

150 L2_l=0 ! TRIAX CABLE Low SIDE: none (0m)

160 L3_h=2 ! COAX CABLE High SIDE: 2m

170 L3_l=2 ! COAX CABLE Low SIDE: 2m

180 !

190 OUTPUT @Hp4284;"FUNC:IMP CPG"

! SET Cp-G FUNCTION

200 OUTPUT @Hp4284;"FREQ "&VAL$(Freq) ! SET MEAS FREQ

210 OUTPUT @Hp4284;"CORR:LENG 2M"

! SET 16048D LENGTH

220 OUTPUT @Hp4284;"*TRG"

230 ENTER @Hp4284;C_m,G_m,Stat

240 !

250 Ccompen_5250(Freq,L1,L2_h,L2_l,L3_h,L3_l,C_m,G_m,C_c,G_c)

260 DISP "CORRECTED C DATA=";C_c

270 DISP "CORRECTED G DATA=";G_c

280 !

290 END

Before Executing Your Program

Before executing a program that uses the capacitance compensation subprogram,
you must link the subprogram to your program as follows. The subprogram is in an
ASCII file on the E5250A Program Disk.

1. GET the file C_COMPEN from the E5250A Program Disk.

GET "C_COMPEN"

2. RE-STORE the file.

RE-STORE "C_COM"

3. Load your program.

4. Link the subprogram to your program by using the LOADSUB statement.

LOADSUB ALL FROM "C_COM"

Error Messages

If error occurs, following error message is displayed, and program is paused:

Parameter Out of Range Improper parameter value. Confirm and enter the

available value.

Advertising