Specifications

Chapter 15 185
Sample Application Programs
Using an Auto-sorting System
15. Sample Application
Programs
Lines 2620 to 2720 Retrieves and displays the bin count.
Lines 2730 to 2990 Performs statistical analysis and then retrieves and displays the
results.
Lines 3030 to 3040 Saves the measurement results (data stored in the volatile memory for
statistical analysis) under the file name identified by the File$ variable.
Example 15-2 Using an Auto-Sorting System (meas_sys.bas)
10 DIM Unit$[9],Para$(1:4)[9],Lim_mode$(1:4)[9],L_type$(1:13,1:4)[9]
20 DIM File$[20],Disp$[9],Beep$[9],Lock$[9],Img1$[200],Img2$[200],
Buff$[9]
30 REAL Freq(1:32),Pow(1:32),Point_no(1:4),L_lim(1:13,1:4),U_lim
(1:13,1:4)
40 REAL Nominal(1:13),R1(1:32,1:10),R2(1:32,1:10)
50 REAL Load_rs,Load_ls,Load_rdc,Rdc_l_lim,Rdc_u_lim
60 REAL Open_l_lim,Open_u_lim,Short_l_lim,Short_u_lim,Load_l_lim,
Load_u_lim
70 INTEGER Scode,Act_tab,Nop,Ave(1:32),Meas_max,Result,Cond_reg,I,J
80 INTEGER Max_cond,Max_bin,Ogbin,Bin_sort_result,Bin(1:14)
90 CLEAR SCREEN
100 !
110 ASSIGN @Agt4287a TO 717
120 Scode=7
130 !
140 ! Measurement Condition
150 !
160 Act_tab=1 ! Active Table Number: 1
170 Unit$="V" ! Power Level unit: mV
180 Nop=2 ! Number of Points: 2
190 Freq(1)=1.0E+8 ! Point No.1 Frequency: 100 MHz
200 Ave(1)=1 ! Averaging Factor: 1
210 Pow(1)=500 ! OSC Level: 500 mV
220 Freq(2)=8.0E+8 ! Point No.2 Frequency: 800 MHz
230 Ave(2)=1 ! Averaging Factor: 1
240 Pow(2)=500 ! OSC Level: 500 mV
250 Disp$="OFF" ! Display Off
260 Beep$="OFF" ! Done/Warn Beeper Off
270 Lock$="ON" ! Front panel/KBD/Mouse Lock On
280 File$="log_data.csv" ! Log Data Save File Name
290 Meas_max=10 ! Maximum Measurement Number
300 !
310 ! Rdc Limit for Calibration/Compensation
320 !
330 Open_l_lim=100 ! Open Rdc Lower Limit : 100 ohm
340 Open_u_lim=1.E+9 ! Open Rdc Upper Limit : Dummy
350 Short_l_lim=-1.E+9 ! Short Rdc Lower Limit: Dummy
360 Short_u_lim=25 ! Short Rdc Upper Limit: 25 ohm
370 Load_l_lim=-1.E+9 ! Load Rdc Lower Limit : Dummy
380 Load_u_lim=1.E+9 ! Load Rdc Upper Limit : Dummy
390 !
400 ! Rdc Limit for Contact Check
410 !
420 Rdc_l_lim=-10 ! Lower Limit : -10 ohm
430 Rdc_u_lim=10 ! Upper Limit : 10 ohm
440 !
450 ! Bin Sort
460 !
470 Max_cond=4
480 Max_bin=6
490 Ogbin=2
500 ! ====[ALL BIN]====