
Chapter 7
89
Sorting Based on Measured Result (Comparator Function)
Sample Program
7.
So
rting
Ba
se
d on
M
eas
ur
ed
Res
u
lt
(C
ompar
ator
F
u
n
c
tion
)
Sample Program
Example 7-1 shows a sample program of the BIN sort function. This program is stored on
the sample program disk under the filename “bin_sort.bas”.
This program sets up the limit ranges as shown in the below table, performs measurement
50 times, and then reads out and displays the measured result and comparator sorting result
for each measurement. Then, it reads out and displays the sort count for each BIN after the
completion of all measurements.
The program is detailed below:
Line 60
Sets the GPIB address.
Lines 80 to 100
Assigns the settings of the primary parameter (Cp), secondary
parameter (D), and measurement range (1 nF) to the Pri$, Sec$, and
Range$ variables, respectively.
Lines 120 to 130 Assigns the limit range designation method (percent tolerance mode)
and reference value (1 nF) to the Mode$ and Nom variables,
respectively.
Lines 140 to 220 Assigns the lower limit values and upper limit values of BIN1 to BIN3
to the L_lim(*) and U_Lim(*) variables, respectively.
Lines 230 to 250 Assigns the lower limit value and upper limit value of the secondary
parameter limit range to the L_lim_sec and U_lim_sec variables,
respectively.
Lines 270 to 290 Assigns the ON/OFF state of the AUX BIN function, the ON/OFF
state of the Low C reject function, and the limit (10%) to the Aux$,
Low_c_rej$, and Low_c_rej_lim variables, respectively.
Line 310
Resets the instrument.
Lines 350 to 370 Sets the primary parameter, secondary parameter, and measurement
range to Pri$, Sec$, and Range$, respectively.
Lines 410 to 420 Sets the limit range designation method and reference value to Mode$
and Nom, respectively.
Lines 430 to 460 Sets the lower limit values and upper limit values of BIN1 to BIN3 to
L_lim(*) and U_Lim(*), respectively, and turns ON BIN1 to BIN3.
Lines 470 to 490 Turns OFF BIN4 to BIN9.
Lines 500 to 510 Sets the lower limit value and upper limit value of the secondary
parameter limit range to L_lim_sec and U_Lim_sec, respectively, and
turns ON the secondary parameter limit range.
Lower limit value
Upper limit value
BIN1
-1%
1%
BIN2
-2%
2%
BIN3
-3%
3%
Secondary parameter
0
0.1
Содержание 4288A
Страница 18: ...16 Chapter1 Making Effective Use of This Manual How To Use This Manual ...
Страница 102: ...100 Chapter8 Avoiding Mistakes Related to Work and Daily Checks Daily Checks executing the self test ...
Страница 212: ...210 AppendixA Manual Changes Manual Changes ...
Страница 248: ...246 AppendixB Information for Replacing 4278A with 4288A Comparison of Interfaces ...
Страница 258: ...256 AppendixC Status Reporting System Using the Status Reporting System ...
Страница 282: ...280 AppendixG 4268A vs 4288A GPIB Command Correspondence Table 4268A vs 4288A GPIB Command Correspondence Table ...
Страница 288: ...286 Index Index ...