Technical data

26 User’s and Service Guide
87050A Option K22 Example Programs
Example Programs
These programs are written in HP BASIC and are for use with an HP 9000 series
200/300/700 computer. The programs are briefly described below and the control program
is listed following the description.
The “CONTROL” Program
The “CONTROL” program (listed on the following pages) will first ask the user which
method will be used to control the 87050A Option K22; either GPIB or parallel port. It will
then ask which ports are to be enabled. The port entries are done in two pairs; four
numbers separated by commas. The numbers may range from 0 through 4 for the A i/p and
B i/p input ports and 0 through 12 for the test ports. For example, the entry of “2,2,2,5” will
connect the A i/p 2 port to PORT 2 and the B i/p 2 port to PORT 5. The program is a
continuous loop. Press STOP to end program execution.
10 ! RE-SAVE"CONTROL_K22"
20 ! CONTROL: This example program allows "manual" control of the Multiport
K22 via the parallel port of the 8720D or
30 ! via GPIB directly.
40 !
50 ! NOTE: You MUST select either GPIB control or Parallel Port
60 ! control. If Parallel Port via the 8720D is selected,
70 ! this program will return the analyzer to LOCAL control
80 ! after the switches are set.
90 ! Set GPIB address as required below.
100 ! K22 can be set to one of two Parallel Port addresses.
110 ! This program (SUB Set_switches) assumes it is set to
120 ! address 00.
130 ! Copyright: Agilent Technologies, Palo Alto, CA 94304
140 !
150 !
160 ! Revision A.01.00 07 Jul 1997 rd
CONTROL A program that demonstrates the control of the 87050A
Option K22 via GPIB and/or the parallel port. This program
can be used to manually select any port combination.
CYCLE This program prompts the user to make an S
11
one-port cal
on the 8720D and then cycles through all twelve test set
ports, pausing at each one, so that the user can view the
return loss of each port.