User`s guide

Table Of Contents
68 Chapter 4
Performing a Calibration
Sample Program
with instrument settings, and then save the instrument settings under
the file name contained in the File$ variable.
The Select_cal_kit subprogram in lines 500 to 740, which selects the calibration kit, is
described below.
Lines 550 to 590 These lines retrieve the names of all the calibration kits and stores
them into the Cal_kit_lbl$(*) variable.
Line 600 Allows the user to return to the entry start line and re-enter the data if
an error (such as an invalid entry) occurs while entering the number
that identifies the calibration kit.
Lines 620 to 680 Displays the list of supported calibration kits, and prompts the user to
choose one of the items by typing in the appropriate number.
Line 690 Converts the entered value into an integer and stores it into the Cal_kit
variable.
Line 700 Returns to the entry start line if an invalid value is contained in
Cal_kit.
Line 730 Selects the calibration kit that matches the number contained in the
Cal_kit variable.
The Select_port subprogram in lines 780 to 1010, which allows the user to select a port, is
described below.
Lines 830 to 840 If the value of Num_of_ports is 2 (2-port), the subprogram determines
the port numbers (1, 2) without prompting the user to enter port
numbers, and then store the port numbers into the Port(*) variable.
Lines 860 to 990 If the value of Num_of_ports is not 2, the subprogram prompts the
user to select as many ports as Num_of_ports.
Line 870: Allows the user to return to the entry start line and
re-enter the data if an error (such as an invalid entry) occurs while
entering the port number.
Lines 890 to 910: These lines print the index of the current port
and prompt the user to enter the port number.
Lines 920: Converts the entered value into an integer and stores it
into the Port(*) variable.
Lines 930 to 960: Return to the entry start line if the port number is
beyond the range of 1 to 2 or conflicts with an already selected
number.