Specifications
Chapter 3 67
Setting Measurement Conditions
Example program for setting the segment sweep conditions
3. Setting Measurement
Conditions
Lines 520 - 540 Reads out the total number of segments created and indicates that the
creation of the segment sweep table is complete.
Line 600 -760 When the dc bias function is installed, this sub program sets the
start/stop frequency, number of measurement points, point averaging
factor, and the oscillator output level. Sets the necessary setting
parameters for each dc bias mode (fixed voltage source/fixed current
source).
Lines 800 - 880 When the dc bias function is not installed, this sub-program sets the
start/stop frequency, number of measurement points, point averaging
factor, and oscillator output level for non-dc bias setting parameters.
Example 3-3 Setting segment sweep conditions (HTBasic)
10 INTEGER No_of_segment,Nop,Point_avg,Segm_no
20 REAL Start_f,Stop_f,Osc,Dcbias,Dcbias_lim
30 DIM Osc_unit$[7],Dcbias_unit$[6]
40 !
50 CLEAR SCREEN
60 ASSIGN @Agte4991a TO 717
70 !
80 No_of_segment=3
90 Osc_unit$="VOLT" ! CURR/VOLT/POW
100 Dcbias_unit$="VOLT" ! CURR/VOLT/OFF
110 !
120 ! Initial Setting
130 !
140 OUTPUT @Agte4991a;"SYST:PRES"
150 OUTPUT @Agte4991a;"SEGM:COUN "&VAL$(No_of_segment)
160 OUTPUT @Agte4991a;"DISP:TEXT:STAT ON"
170 OUTPUT @Agte4991a;"DISP:TEXT1:SET"
180 OUTPUT @Agte4991a;"SEGM:"&Osc_unit$&":STAT ON"
190 !
200 IF Dcbias_unit$="CURR" OR Dcbias_unit$="VOLT" THEN
210 !
220 ! Entry Segment Data with DC Bias
230 !
240 Data_w_bias:!
250 DATA 1E6, 100E6, 101, 32, 0.1, 10, 0.01
260 DATA 100E6, 1E9, 101, 4, 0.1, 10, 0.01
270 DATA 1E9, 3E9, 51, 4, 0.1, 10, 0.01
280 !
290 OUTPUT @Agte4991a;"SEGM:"&Dcbias_unit$&":OFFS:STAT ON"
300 RESTORE Data_w_bias
310 FOR Segm_no=1 TO No_of_segment
320 READ
Start_f,Stop_f,Nop,Point_avg,Osc,Dcbias,Dcbias_lim
330 CALL
Segm_tbl_bias(@Agte4991a,Segm_no,Start_f,Stop_f,Nop,Point_avg,Osc_u
nit$,Osc,Dcbias_unit$,Dcbias,Dcbias_lim)
340 NEXT Segm_no
350 ELSE
360 !
370 ! Entry Segment Data w/o DC Bias
380 !
390 Data_wo_bias:!
400 DATA 1E6, 100E6, 101, 32, 0.1