Specifications

66 Chapter 3
Setting Measurement Conditions
Example program for setting the segment sweep conditions
Example program for setting the segment sweep conditions
An example program for setting the segment sweep conditions is described below. This
program sets the segment sweep conditions as follows after resetting the E4991A. When
the setting is complete, a completion message is displayed.
Example program using HTBasic
The program shown in Example 3-3 is saved under the filename segm_set.htb on the
sample programs disk. The details of this program are explained as follows.
Line 60 Sets the GPIB address of the E4991A.
Lines 80 - 100 Substitutes a variable for the total number of segments to be created.
In addition, substitutes variables for the oscillator level and the setting
units of the dc bias. However, when the dc bias function is not installed
in the E4991A, enters “OFF” for the variable Dcbias_units$.
Line 140 Resets the E4991A.
Lines 150 - 180 Creates a segment in the segment sweep table and displays the table.
In addition, sets the setting units of the oscillator level.
Line 200 Branches the program for either the condition in which the dc bias
function is installed or that in which it is not installed in the E4991A.
Lines 250 - 270 Declares the parameters (start/stop frequency, number of measurement
points, point averaging factor, oscillator output level, dc bias output
voltage level, and dc bias current limit maximum value) that are
necessary for setting the segment sweep table.
Line 290 Sets the dc bias setting units for creating the segment sweep table.
Lines 300 - 340 When the dc bias function is installed, reads the setting parameters
necessary for creating the segment sweep table while looping for the
total number of segments in the section and then provides the setting
parameters to the sub-program.
Lines 400 - 480 When the dc bias function is not installed, calls the sub-program to
create the segment sweep table in this section.
Segment sweep table setting item Segment 1 Segment 2 Segment 3
Start frequency 1 MHz 100 MHz 1 GHz
Stop frequency 100 MHz 1 GHz 3 GHz
Number of measurement points 101 101 51
Oscillator output level 100 mV 100 mV 100 mV
dc bias output voltage level 10 V 10 V 10 V
dc bias current limit maximum value 10 mA 10 mA 10 mA
Number of point averaging 32 4 4
Sweep type Segment sweep
Delay time at each segment 0.1 sec
X-axis span display format Each segment