Specifications

182 Chapter 15
Sample Application Programs
Using an Auto-sorting System
Using an Auto-sorting System
Example 15-2 shows a sample program designed for use with a handler-based auto-sorting
system to automate the measurement task on a 10 nH inductor. You can find the source file
of this program, named meas_sys.bas, on the sample program disk.
Start the program after setting up the auto-sorting system. The program prompts you to
enter the definition values for the LOAD standard. Following the on-screen instructions,
you must enter the Rs, Ls, and R
dc
values for the LOAD standards (predefined working
standards) at 100 MHz and 800 MHz.
When you have finished defining the LOAD standard values, the program displays the
message “Set Open-Connection.” Disconnect the system's test connectors (such as the
contact probe) so that the test circuit is open and press the
[y] key followed by the [Enter]
key to measure the OPEN data for calculating the calibration coefficients. When you are
presented with the message “Set Short-Connection,” short-circuit the test connectors, and
press the
[y] key followed by the [Enter] key to obtain the SHORT measurement data for
calculating the calibration coefficients. Finally, the program displays the message
“Set Load-Connection.” Connect the working standard to the test connectors and press the
[y] key followed by the [Enter] key to measure the LOAD data for calculating the
calibration coefficients.
When the instrument has finished the above measurement, the program turns on the
calibration function and displays the message “Set Dut. Then input external trigger.” In the
auto-sorting system, connect the test connectors with a DUT and input an external trigger
signal from the handler interface. When the instrument has finished measuring the DUT,
the program displays the result of bin sorting. The program repeats this process 10 times.
When the instrument has finished the 10th cycle of measurement, the program displays the
statistics including the number of DUTs sorted into each bin, saves the measurement
results under the file name log_data.csv, and then terminates.
The program is described in detail below:
Lines 110 to 120 Sets the GPIB address and select code.
Lines 160 to 180 Stores the active table number (No.1), the unit of the signal source
level (mV), and the number of measurement points (2 points) into the
Act_tab, Unit$, and Nop variables, respectively.
Lines 190 to 240 Stores the frequency, averaging factor, and signal source level at each
point into the Freq(*), Ave(*), and Pow(*) arrays, respectively. The
Freq(*) array contains two values of 100 MHz and 800 MHz; the
Ave(*) array contains “1” for all points; the Pow(*) array contains
“500 mV” for all points.
Lines 250 to 270 Stores the on/off settings for the screen display (on), beep (off), and
key lock (on) into the Disp$, Beep$, and Lock$ variables, respectively.
Line 280 Stores the name of the measurement result file (log_data.csv) into the
File$ variable.
Line 290 Stores the number of measurement cycles (10) into the Meas_max
variable.
Lines 330 to 380 Stores the R
dc
measurement lower limit for the OPEN standard (100
W) into the Open_l_lim variable and the R
dc
measurement upper limit