Specifications
114 Chapter 7
Sorting DUTs Based on Measurement Results
Sample Program
Lines 1020 to 1100 Loops through the following steps 50 times:
1. Lines 1030 to 1070: Triggers the instrument after the trigger
system is put into trigger wait state.
2. Lines 1080 to 1090: Retrieves the measurement results and
displays them according to Img$.
Lines 1110 to 1200 Retrieves and displays the bin count.
Example 7-1 Using the Bin Sorting Function to Sort DUTs (bin_sort.bas)
10 DIM Para$(1:4)[9],Lim_mode$(1:4)[9],L_type$(1:13,1:4)[9],Img$[50]
20 REAL Point_no(1:4),L_lim(1:13,1:4),U_lim(1:13,1:4),Nominal(1:13)
30 REAL Stat,Ls,Q,Bin_res
40 INTEGER Max_cond,Max_bin,Ogbin,Bin(1:14),I,J,Cond_reg
50 !
60 ASSIGN @Agt4287a TO 717
70 !
80 Max_cond=2
90 Max_bin=3
100 Ogbin=2
110 !
120 !====[ALL BIN]====
130 !-- Condition 1 --
140 Point_no(1)=1
150 Para$(1)="LS"
160 Lim_mode$(1)="PCNT"
170 Nominal(1)=1.0E-7
180 !-- Condition 2 --
190 Point_no(2)=1
200 Para$(2)="Q"
210 Lim_mode$(2)="ABS"
220 !=====[BIN1]======
230 !-- Condition 1 --
240 L_lim(1,1)=-1.0
250 U_lim(1,1)=1.0
260 L_type$(1,1)="IN"
270 !-- Condition 2 --
280 L_lim(1,2)=100.0
290 U_lim(1,2)=1.0E+9
300 L_type$(1,2)="IN"
310 !=====[BIN2]======
320 !-- Condition 1 --
330 L_lim(2,1)=-1.0
340 U_lim(2,1)=1.0
350 L_type$(2,1)="IN"
360 !-- Condition 2 --
370 L_lim(2,2)=100.0
380 U_lim(2,2)=1.0E+9
390 L_type$(2,2)="OUT"
400 !=====[BIN3]======
410 !-- Condition 1 --
420 L_lim(3,1)=-1.0
430 U_lim(3,1)=1.0
440 L_type$(3,1)="OUT"
450 !-- Condition 2 --
460 L_lim(3,2)=100.0
470 U_lim(3,2)=1.0E+9
480 L_type$(3,2)="IN"
490 !
500 ! Measurement Condition Setting
510 !