Specifications

184 Chapter 15
Sample Application Programs
Using an Auto-sorting System
its values (Rs-Ls) defined for each measurement point.
Lines 1740 to 1820 Passes control to a subprogram named Inp_data, which obtains the
definition values for the load (working standard) from user input. For
more information on the Inp_data subprogram, refer to the description
in Example 4-1 on page 46.
Lines 1840 to 1920 Passes control to a subprogram named FNCal, which measures the
data for OPEN, SHORT, and LOAD standards. For more information
on the FNCal subprogram, refer to the description in Example 4-1 on
page 46.
Lines 1940 to 1960 Calculates the calibration coefficients and turns on the calibration
function.
Lines 2000 to 2020 After measurement is stopped (the trigger system is stopped), the
program sets the trigger source to External trigger and turns on the
continuous activation of the trigger system.
Lines 2060 to 2200 Configures the bin sorting setup table.
Lines 2210 to 2220 Assigns all bins with numbers greater than Ogbin as good bins and
turn on the bin sorting function.
Lines 2230 to 2260 Turns on the bin count function and clears the current bin count.
Lines 2300 to 2320 Calculates and sets the maximum number of data segments captured
for statistical analysis and then begins retrieving the data.
Lines 2370 to 2400 Configures the instrument to generate an SRQ upon completion of
measurement.
Lines 2420 to 2580 Iterates the following steps Meas_max times.
1. Lines 2340 to 2460: Waits until the trigger system is put into
Waiting for Trigger state.
2. Lines 2470 to 2490: Clears the status byte register and operation
status event register.
3. Lines 2500 to 2510: Sets the branch target for an SRQ interrupt to
enable SRQ interrupts.
4. Lines 2520 to 2530: Prompts the user to connect a DUT and input
an external trigger. The program waits until the instrument
receives an external trigger and completes the measurement cycle.
NOTE As shown in this example, the measurement cycle must be synchronized with the operation
status of the 4287A (trigger input timing, detection of the end of measurement, and so on).
The sample program uses the status report system to provide synchronization with the
trigger input and end of measurement. In a handler-based auto-sorting system, you can also
use handler interface output signals such as /READY_FOR_TRIG, /INDEX, or /EOM to
achieve synchronization.
5. Lines 2550 to 2570: Retrieves and displays the results of bin
sorting.
NOTE In a handler-based auto-sorting system, you can also use handler interface signals such as
/BIN1 through /BIN13 or /OUT_OF_GOOD_BINS to obtain the results of bin sorting.