Specifications

Chapter 3 55
Setting Measurement Conditions
Example program for setting the measuring conditions
3. Setting Measurement
Conditions
Example program using HTBasic
The program shown in Example 3-1 is saved under the filename setup.htb on the sample
programs disk. The details of this program are explained as follows.
Line 230 Sets the GPIB address of the E4991A.
Lines 250 - 290 Substitutes a variable for the trace number.
Lines 310 - 450 Substitutes variables for the on/off status of each trace display,
measurement parameter, trace display format, and Y-axis display
format. In addition, when the measurement parameter is a phase (Trace
2), substitutes variables for the expanded phase display and the phase
display format display unit.
Lines 470 - 510 Substitutes variables for the sweep-related parameter values (sweep
parameter/type, sweep range, number of measurement points, and
sweep direction).
Lines 520 - 540 Substitutes variables for the average-related parameter values (sweep
averaging and point averaging).
Lines 550 - 560 Substitutes variables for the auto/manual setting of the sweep time and
sweep delay time.
Lines 570 - 580 Substitutes variables for the oscillator level-related parameters.
Lines 590 - 600 Substitutes variables for the dc bias-related parameter values.
Lines 620 - 670 Substitutes variables for the on/off status of the list display of the
measurement screen and the object of the display trace (data
trace/memory trace).
Lines 680 - 720 Substitutes variables for the display scale-related parameter values.
Line 740 Resets the E4991A.
Line 780 Sets the E4991A to impedance measurement mode.
Lines 800 - 940 Sets the measurement parameters for Traces 1, 2, and 4, the trace
display format, and the Y-axis display format. In addition, for Trace 2,
sets the expanded phase display as well as the display units of the
phase display format.
Lines 960 - 970 Turns off Traces 3 and 5.
Line 1010 Sets the sweep parameter (type).
Lines 1030 - 1040 Sets the sweep range for the frequency sweep range.
Lines 1060 - 1120 Sets the measurement point, sweep direction, Sweep averaging
function on/off status, averaging factor, point averaging function
on/off status, auto/manual setting of the sweep time, and sweep delay
time.
Lines 1060 - 1120 Selects the fixed mode for oscillator current mode and sets the
oscillator current level. Next, sets the voltage level in the dc bias fixed
mode and sets the maximum value of the dc bias current limit.
Lines 1230 - 1390 Sets the display scales of Traces 1, 2, and 4.
Line 1430 Turns on the dc bias output.
Line 1470 Displays a setting completion message.