RF Communications Test Set Family HP
RF Communications Test Set Family HP
RF Communications Test Set Family HP
and describes products or services now available through Agilent. It may also refer to products/services no longer supported by Agilent. We
regret any inconvenience caused by obsolete information. For the latest information on Agilent’s test and measurement products go to:
www.agilent.com/find/products
Or in the U.S., call Agilent Technologies at 1-800-452-4844 (8am–8pm EST)
2 Table of Contents
Chapter 3 - Choosing Your Development Method ........................................ 24
Figure 3-1. Three Possible Development Methods ........................................... 24
Method 1.
Developing Programs on a BASIC Language Computer
Outside the Test Set .................................................................................................. 25
Figure 3-2. Connecting BASIC Language Computers to the Test Set ............. 25
HP-IB Interface Hardware and Screen Configuration ........................................ 2 6
Connecting BASIC language computers to the Test Set via HP-IB ................. 26
Downloading Your Program into the Test Set over HP-IB ................................. 2 7
Uploading Your Program from the Test Set to a Remote
BASIC Language Computer over HP-IB ............................................................... 27
Method 2.
Developing Programs on the Test Set Via RS-232 Using the “Edit” Mode ..... 28
Selecting the IBASIC Command Entry Field ....................................................... 29
Entering and Exiting the Edit Mode ...................................................................... 3 0
IBASIC Edit Commands (Function Keys) ............................................................ 30
Table 3-1. Edit Mode Escape Code Commands ................................................. 30
Setting Up Function Keys in Microsoft ® Windows Terminal ............................ 3 0
Setting Up Function Keys in HP AdvanceLink ..................................................... 30
Setting Up Function Keys in ProComm. ............................................................... 3 1
Method 3.
Developing Programs in a Word Processor on a PC .......................................... 31
Setting up a Word Processor ................................................................................... 3 1
Writing Lines of IBASIC Code on the Word Processor ...................................... 31
Transferring Programs from your Text Editor into the Test Set ...................... 32
Sending ASCII Text Files over RS-232 with Windows HyperTerminal .......... 34
Sending ASCII Text Files over RS-232 with ProComm
Communications Software ...................................................................................... 34
Uploading Programs from the Test Set to Your PC ............................................. 35
I/O from IBASIC Programs ...................................................................................... 3 6
The Two Serial Ports ................................................................................................ 3 6
Example IBASIC Program Using Serial Port 10 .................................................. 36
More Serial Port 10 Information ............................................................................. 3 7
Table of Contents 3
Appendix - Description of Memory and Mass Storage ................................. 44
Memory Systems Overview .................................................................................... 44
Figure A-1. Test Set On-board Mass Storage Locations and Size ................... 45
Table A-1. Test Set Memory Overview ................................................................ 45
Selecting the Mass Storage Location .................................................................... 47
Listing Memory Contents ........................................................................................ 48
Priority of Memory Use ............................................................................................ 48
Memory Space Considerations .............................................................................. 48
Saving and Retrieving Programs ........................................................................... 50
Memory Cards ......................................................................................................... 50
The Memory Card Location .................................................................................... 50
SRAM Cards ............................................................................................................... 50
OTP (ROM) Cards ..................................................................................................... 51
On-board RAM Memory .......................................................................................... 52
Storage for SAVE/RECALL Registers .................................................................... 52
Storage for Executable IBASIC Programs ........................................................... 52
Storage for IBASIC Programs or Data (RAM Disk) ............................................ 52
Disk Drives .............................................................................................................. 53
4 Table of Contents
Conventions Used in this Product Note
The generic term “test set” is used interchangeably in this product note for the
following products:
The generic abbreviation "PC" refers to computers compatible with the IBM®
personal computer (PC). The PC is used as the example external controller in this
product note. Computers other than the PC can also be used to program the test set.
1
IBM® is a U.S. registered trademark of International Business Machines Corp.
Conventions 5
Chapter One Chapter 1
Overview of the Test Set
Reference Documents
Table 1-1 lists other HP documents which will help you develop programs for your
test set. Later versions of the same documents may have the same information but
in different chapters or under different headings.
Available Software
Hewlett-Packard has an extensive range of test set application programs available
to simplify both digital and analog measurements of cellular mobile telephones,
cellular telephone cell sites (base stations), private mobile radios (conventional
and trunked), and other equipment. They are available as various options to the
HP 11807A radio test software and the HP 11807B cell site test software. The tests
are based on North American, European, and Japanese communications
requirements and standards, as well as manufacturer recommendations.
6 Chapter One
This Product Note
This product note is designed to help you write your own programs using the built-
in IBASIC controller. Developing programs for the test set is simplified if the pro-
grammer has a basic understanding of how the test set operates. An overview of
the test set’s operation is best presented in terms of how information flows through
the unit. The simplified block diagrams presented in Figures 1-1 and 1-2 show how
instrument control information and measurement result information is routed be-
tween the test set’s instruments, instrument control hardware, built-in IBASIC
controller, and other components.
Source RF GENERATOR
AF Generator 1
SIGNALING ENCODER (AF Generator 2)
(In addition, all test sets can internally route RF or AF signals among the various
connectors and instruments, and can turn device-under-test transmitters on and off
with a relay closure. Also, with the optional radio interface card installed, the test
set can send and receive 16-bit parallel digital signals to and from the device-
under-test).
Front-Panel Displays
Since so many instruments are integrated into the test set, it is not feasible to have
an actual front panel for each instrument. Therefore, each instrument’s front panel
is maintained in firmware and is displayed whenever the instrument is selected.
Only one instrument can be displayed at a time (but up to four measurement re-
sults can be seen at once if desired). Just as with stand-alone instruments, instru-
ment front panels in the test set can contain:
• Instrument setting information
• Measurement results
• Data received from the device-under-test (DUT)
Manual Operation
Using the test set manually is very similar to using a set of bench- or rack-mounted
test equipment. To obtain a measurement result with a bench or rack system, you
must use the appropriate instrument and make it active. Conceptually, the same
measurement process applies to individual instruments of the test set. Table 1-3
compares identical measurements with an individual instrument and a test set.
8 Chapter One
Bench- or Rack-Mount Test Equipment Test Set
1. Choose the RF power meter as the 1. Choose the RF power meter as the
measurement instrument. measurement instrument by selecting
the RF ANALYZER screen from the
To Screen menu using the rotary knob.
2. Turn the power meter on. 2. Turn the power meter measurement on
by selecting the field to the right of
TX Power and pressing the (ON/OFF) key.
3. Connect the DUT to the power meter's 3. Connect the DUT to the RF IN/OUT
RF input. connector on the Test Set.
4. Select the correct power meter functions 4. Change other necessary fields on the
on the front panel. RF ANALYZER screen (such as Input
Port to RF In.)
5. Read the measurement result on the 5. Read the measurement result on the Test
power meter's display. Set's CRT under TX Power.
Chapter One 9
Automatic Control Mode
Note: This section covers internal automatic control mode. Information about
external automatic control of the test set by an external computer connected to
the test set via the HP-IB interface can be inferred from topics covered in this
section, but this mode is not covered in detail.
In internal automatic control mode, the test set’s operation is controlled by an
application program running on the built-in IBASIC controller. Hewlett-Packard
instrument BASIC is the only programming language supported on the built-in
controller of the test set. IBASIC is a subset of the Hewlett-Packard BASIC
programming language used on the HP 9000 series 200 and 300 workstation
controllers and PCs.
1 0 Chapter One
Four Types of Mass Storage
The program is loaded into RAM memory from some type of mass storage
device. Four types of mass storage devices are available for the test set:
Cards
Memory cards plug into the front-panel slot of the test set.
SRAM (Static Random Access)
SRAM memory cards are primarily used for program development and storage.
They can be repeatedly written to and over-written, and are battery-backed.
OTP (One-time Programmable Read Only Memory)
OTP memory cards contain factory-supplied application programs or data that
cannot be over-written or erased by the user. (HP 11807A, HP 11807E, and
HP 11807B software comes on this format).
Disk Drives
These are typically 3 1/2" flexible disks or hard disks which can be connected to
the HP-IB interface.
RAM Disks
RAM disks are random access memory in four battery-backed memory locations
inside the test set's RAM that can be used by the programmer very much like
SRAM memory cards, but cannot be removed from the test set.
ROM
This read only memory inside the test set contains factory-supplied programs
accessible to the user that cannot be erased.
More detail on mass storage is given in the Appendix.
Figure 1-2 shows how information is routed inside the test set when it is in internal
automatic control mode. In manual control mode, certain test set resources are
dedicated to manual operation. In internal automatic control mode (that is, when
an IBASIC program is running), these resources are switched to the IBASIC con-
troller. Table 1-4 shows some of the relationships.
Chapter One 1 1
Test Set Feature Manual Control Mode Internal Automatic
(Front-Panel Control) Control Mode
(IBASIC program running)
The externally-accessible HP-IB interface bus, select code 7 in Figure 1-2, is used
to connect the test set to external instruments or to an external controller. Refer to
the Programmer's Guide for your test set for a listing of the HP-IB command syntax.
1 2 Chapter One
Important Notes for Writing Programs
The test set is designed to operate the same way under automatic control as it
does under manual control. This has several implications when designing and
writing programs for the test set:
• To automate a particular task, determine how to do the task manually and then
duplicate the steps in your program.
• In manual control mode, an analyzer function must be displayed and active to
make a measurement or receive DUT data. Therefore, if you want to make a
measurement in your program, you must follow these basic steps:
1. Use the DISPlay command to select the instrument whose front panel contains
the desired measurement result or data field (such as AF ANalyzer).
2. Set the measurement field (such as SINAD) to the (ON) state.
3. Then trigger a reading and read the result.
Program Development
There are three recommended approaches to developing IBASIC programs. They
are outlined below and discussed in more detail in Chapter 3. As shown in Figure
1-3, all three development methods employ an external computer (or terminal).
Your choice of development method will typically be driven by the available
equipment and by the extent of the development task. If you have a large
development task, it is strongly recommended you use a BASIC language
computer as outlined in development Method #1, by using a PC based tool,
HP 83224A.
Method #2 is for program modification or smaller program development. Since
the test set only has the knob and numeric keypad for program entry, developing
programs on the test set alone is not recommended. Method #3 is least preferred
for program development or modification because no syntax checking occurs
until the program is first run making it difficult to debug long programs. Details of
each development method are given in Chapter 3.
NOTE:
Another development method, writing programs for the TESTS subsystem,
is referenced in the HP 8920A Instrument BASIC Programmer's Guide.
This method uses the DEV_PL programs found on the Hewlett-Packard Test
Set Program Development Tool (on a 3 1/2 inch flexible disk). The DEV_PL
programs will NOT operate with a typical PC, and therefore will not be
described in this product note.
Chapter One 1 3
Figure 1-3. Program development methods
1 4 Chapter One
Chapter One 1 5
Chapter Two Chapter 2
Interfacing with the IBASIC Controller
This chapter describes how to interconnect and set up the test set and peripheral
devices so you can develop IBASIC programs. To determine which programming
environment best fits your application, refer to Chapter 3.
1 6 Chapter Two
Figure 2-1 and Table 2-1 show the cables and adapters that are available from
Hewlett-Packard. (See Figure 2-2 for a wiring diagram to construct your own
cables. RJ-11 cables and adapters can be wired several ways. If you buy a cable
or adapter other than the HP parts listed in Table 2-1, verify the connections for the
pins indicated before connecting the cables to the test set).
A D E
08921-61038 98642-66505 98642-66508
(Usable Serial Port 9 ONLY) (Usable Serial Port 9 ONLY)
6-Pin RJ-11
15 Meter Cable Female
2 Meter Cable (in back of
6-Pin RJ-11 adapter)
Male
9-Pin DB-9
Female
6-Pin RJ-11 6-Pin RJ-11 25-Pin DB-25
Male Male Male
B
08921-61039
(Usable Serial Port 9 ONLY)
To the To
Test Set Computer
3 Meter Cable A, B, or D + E
C
08921-61031 To the To
Test Set Computer
C A, B, or D + E
0.6 Meter Cable
To
Device Under Test Device Under
Dual 6-Pin D Test
RJ-11 Female
6-Pin RJ-11
Male
Chapter Two 1 7
Figure 2-2. Connecting the test set serial port to a PC or terminal
1 8 Chapter Two
8. If you set Inst Echo to On, you can see characters echoed back to your PC or
terminal as they are sent to the test set.
9. With test set's Inst Echo On, do not use the echo feature of your PC or
terminal serial port configuration or all the characters on your display will
be duplicated.
Chapter Two 1 9
PC Configuration
To prepare for IBASIC programming, you must first configure your PC to operate
with the test set. This includes:
• Hardware
• Terminal emulator software
2 0 Chapter Two
Select Terminal Preferences
1. Terminal Modes
Line Wrap: Off
Local Echo: Off
Sound: Off
2. Columns: 132
3. CR->CR/LF
Inbound: Off
Outbound: Off
4. Cursor
Block
Blink: On
5. Terminal Font: Fixedsys
6. Translations: None
7. Show Scroll Bars: On
8. Buffer Lines: 100
9. Use Function, Arrow, and Ctrl Keys for Windows: Off
Select Text Transfers
1. Flow Control: Standard Flow Control
2. Word wrap Outgoing Text at Column: Off
Select Communications
(the first five of the following communications choices for your PC's serial
port should match your test set's settings)
1. Baud Rate: 9600
2. Data Bits: 8
3. Stop Bits: 1
4. Parity: None
5. Flow Control: Xon/Xoff
6. Connector: COM1, COM2, COM3, or COM4 depending on your PC setup
7. Parity Check: Off
8. Carrier Detect: Off
2 2 Chapter Two
Language: ENGLISH
Terminal Mode: Alphanumeric
Remote To: enter your PC’s selected serial port number, often Serial 1
Printer I/F: None
Memory Size: 32K
Video Type: select your display type
Forms Path: no entry
Screen Size: select your size — 23 or 24
4. Press (DONE) to return to the Config Screen
5. Press (REMOTE CONFIG) (to set up the Serial port you selected above in
Remote To)
Baud Rate: 9600
Parity/DataBits: None/8
Enq Ack: NO
Asterisk: OFF
Chk Parity: NO
SR(CH): LO
Recv Pace: Xon/Xoff
CS(CB)Xmit: NO
XmitPace: Xon/Xoff
6. Press (DONE) to return to the Config Screen
7. Press (TERMINAL CONFIG)
Terminal Id: 2392A
LocalEcho: OFF
CapsLock: OFF
Start Col: 01
Bell: ON
XmitFnctn(A): NO
SPOW(B): NO
InhEolWrp(C): NO
Line/Page(D): LINE
InhHndShk(G): NO
Inh DC2(H): NO
Esc Xfer(N): YES
ASCII 8 Bits: YES
Fld Separator: down arrow or US
BlkTerminator: up arrow or RS
ReturnDef: musical note or CR
Copy: Fields
Type Ahead: NO
Row Size: 160
Host Prompt Character: left arrow or D1
Horiz. Scrolling Increment: 08
6. Press (DONE) to return to the Config Screen
7. Press (DONE) to return to the Terminal Screen
8. Press (MAIN) to return to the Main Screen
9. Press (EXIT ADVLINK) to exit
Terminal Configuration
Use the cable information in Table 2-1 and Figure 2-1 earlier in this chapter for
connecting to your terminal. Terminals typically have a DB-25 (male) connector.
Set your terminal for DEC VT-100 ANSI emulation. Many ASCII terminals will
also function properly.
To set up your terminal, use the field settings found in the HP AdvanceLink termi-
nal emulator section found earlier in this chapter. As a minimum, make sure your
terminal’s basic setup information matches the fields on the test set’s I/O CON-
FIGURE screen (see Table 2-2 earlier in this chapter for recommended settings).
Chapter Two 2 3
Chapter Three Chapter 3
Choosing your Development Method
There are three fundamental ways of developing programs for the test set.
See Figure 3-1 below.
Method 1
If you have a BASIC language computer (either an HP technical computer or a PC
running BASIC with HP-IB), this is the best method for developing any program.
This is primarily true because it is easier to debug your program on the external
computer before downloading it into the test set. When doing this, you can watch
the test set's display show changes in state and easily verify the correct measure-
ments. In contrast, when running IBASIC programs on the test set's internal con-
troller, the test set displays only the IBASIC screen, not the individual screen
states as the program progresses. This makes troubleshooting larger programs
more difficult using Methods 2 or 3.
2 4 Chapter Three
Method 2
If you do not have a BASIC language computer, you will most likely be using a PC
with DOS interfacing over RS-232 as explained in Chapter 2. In general, it is easier
to use a PC to develop on-line using the test set and a full-screen “EDIT” mode
because you can easily and quickly run your program at various stages of develop-
ment. In this case, the program always resides in the test set and can be run at any
time. Mass storage is usually RAM memory.
Method 3
The third method of developing is to use a word processor on a PC with RS-232,
and then download your program into the test set when you want to run. This is the
last choice for development because downloading code into the test set over
RS-232 requires a loader utility program running in the test set and a RAM memory
card present as an intermediate storage location before running the program. Also,
no syntax is checked until you run the program after downloading. For shorter
programs, the intermediate storage location is not necessary.
Method 1
Developing Programs on a BASIC Language Computer
Outside the Test Set
Chapter Three 2 5
HP-IB Interface Hardware and Screen Configuration
To use HP-IB (the IEEE 488.2 interface bus) as a means of communicating with
the test set, connect a standard HP-IB cable (such as the HP 10833B) between the
test set’s rear-panel HP-IB connector and the HP-IB connector on your PC.
You first develop your program on the computer using IBASIC compatible com-
mands, then run it from the external computer over HP-IB for debugging. Once the
program is working properly, you then download it into the test set so that it can
run on the internal IBASIC controller. Because the IBASIC controller communi-
cates with the test set's measurement functions over an internal bus with select
code 8, you need to make sure to provide a means of easily changing the HP-IB
select code from 7 to 8. Before downloading the program into the test set, change
all test set HP-IB commands to address 800 from the test set default address of 714
used with the external computer.
There are two ways of allowing easy conversion of all HP-IB commands to a
different address. The first way is to establish a variable to which you assign the
correct 3-digit address number.
For example:
10 Addr = 714! Sets the value of variable Addr to be 714.
20 OUTPUT Addr;”*RST” ! Commands the test set to reset at address 714.
To change the address, simply change the value of variable Addr to 800.
2 6 Chapter Three
A second method is to assign an I/O path to the desired I/O port.
For example, to control device #14 on the port with select code 7:
10 ASSIGN @Device TO 714! Establishes I/O path to select code 7 address 14.
20 OUTPUT @Device;”*RST”! Commands test set to reset at address 714.
1. OUTPUT 714;”PROG:DEL”
Deletes any programs that reside in test set RAM.
2. OUTPUT 714;”PROG:DEF #0"
Defines the address in test set RAM where the downloaded
program will be stored.
3. LIST #714
Causes all program lines to transfer over
HP-IB to the test set which is at address 714.
4. OUTPUT 714;” “END
Defines end of download process by
generating an EOI command.
At this point the program code will be in the test set ready to run. If you find bugs
at this point, you can upload the program back into the remote controller or use the
full screen “EDIT” function over RS-232 explained later.
After the program is working properly in the test set IBASIC environment, you
should Save it to your choice of Mass Storage.
Chapter Three 2 7
70 !
80 !##########################################################
90 Addr=714 !HP 8920 address on HP-IB
100 ALLOCATE Line$[200]
110 PRINTER IS 1
120 CLEAR SCREEN
130 DISP “It may be several minutes before code begins transferring if your
program is long”
140 OUTPUT Addr;”*RST” !Reset the HP 8920
150 OUTPUT Addr;”DISP TIB” !Displays the IBASIC screen
160 OUTPUT Addr;”PROG:EXEC ‘CLS’” !Clears the 8920 display
170 OUTPUT 714;”PROG:DEF?” !Initiates the upload of whole program
180 ENTER Addr USING “X,D,#”;Count_len !Number of lines in program
1 9 0 ENTER Addr USING VAL$(Count_len)&”D,#”;Char_count
!Number of characters
200 !
210 File_name_1: CREATE ASCII “C:\htb386\code”,(1.05*Char_count/256)+5
!Number of records reserved for upload.
220 File_name_2: ASSIGN @File TO “C:\htb386\code”
230 !
240 DISP “Transferring code from HP 8920”
250 LOOP !Program transfer loop.
260 ENTER Addr;Line$ !CR/LF terminates each line.
270 PRINT Line$ !Displays new lines on HP 8920 CRT.
280 OUTPUT @File;Line$ !Transfer new line to file.
290 Char_count=Char_count-LEN(Line$)-2 !Reduces Char_count by the number of
characters in current line.
300 EXIT IF Char_count<=0
310 END LOOP
320 !
330 ASSIGN @File TO * !Cleans out file buffer.
340 ENTER Addr;Line$ !Close off reading
350 CLEAR SCREEN
360 DISP “Transfer complete.”
370 LOCAL Addr
380 END
Method 2
Developing Programs on the Test Set Via RS-232
Using the “Edit” Mode
The test set's IBASIC controller has a built-in editor that is interactive with a ter-
minal or PC over the RS-232 serial port. (It does not work unless you have a termi-
nal or PC terminal emulator connected to serial port 9.) The editor, referred to
here as the “edit” mode, allows you to develop code directly in the test set with no
uploading or downloading. You can use the edit mode to begin writing programs
from scratch or to modify existing programs. Refer to Chapter 2 for information
about connecting a PC or terminal to the test set.
2 8 Chapter Three
Selecting the IBASIC Command Entry Field
To use serial port 9 for program development, you must access the IBASIC com-
mand entry field. Serial port 9 is directly interfaced with the IBASIC command
entry field. An IBASIC command of ASCII characters sent into serial port 9 will
appear on the IBASIC command entry field. When a carriage return/line feed is
encountered, the command will be executed. To select the TESTS (IBASIC
CONTROLLER) screen on the test set:
1. Press the (TESTS) key. The TESTS (main menu) screen is displayed.
2. Position the cursor and select the IBASIC (IBASIC Cntrl) field on the
screen's lower right.
3. The screen titled TESTS (IBASIC CONTROLLER) is displayed.
Chapter Three 2 9
Entering and Exiting the Edit Mode
You enter the edit mode by placing the cursor on the test set’s IBASIC command
line, typing the word “edit” on the connected PC, and pressing the PC’s (ENTER)
key. At this point the test set will fill the PC screen with 22 lines of IBASIC code
from the current program in the program memory. No program line will display on
the test set screen. If no program is present, it will display 10 for line #10 to allow
you to begin writing IBASIC lines beginning at line #10. The test set IBASIC
screen will display “*” in the upper right hand corner indicating that the IBASIC
controller is running to support the full screen edit mode.
After your editing is complete, you exit the edit mode by pressing the PC’s
(ESCAPE) key twice or pressing (SHIFT) (CANCEL) on the test set.
Function Key Names Windows Terminal Escape Codes HP AdvanceLink Escape Codes
INSERT LINE ^[[L (-[L
DELETE LINE ^[[M (-[M
GO TO LINE ^[g (- g
CLEAR LINE ^[[K (-[K
PAGE UP ^[OQ (-OQ
PAGE DOWN ^[OR (-OR
RECALL LINE ^[r (-r
BEGIN LINE ^[OP (-OP
END LINE ^[OS (-OS
Table 3-1. Edit mode escape code commands
3 0 Chapter Three
3. Activate the “Display Function” feature by pressing softkey (F7).
4. Now you can enter the escape codes for each edit command aligned with the
soft key definitions you just entered. With the “Display Functions” key
pressed, when you press the escape key, a left arrow will be displayed.
• Once you have set up all 8 keys, you activate them by pressing (Shift) (F12).
To deactivate your user defined softkeys, press (F12).
• (- is ESCAPE in HP AdvanceLink. See Table 3-1 for the escape codes.
Method 3
Developing Programs in a Word Processor on a PC
The third way of developing an IBASIC program for the test set is to write the pro-
gram using a text processor on a PC, save it as an ASCII file, then download it into
the test set through the serial port. The benefit of this method is that you can do it
on your PC alone without connecting a test set until download and you do not need
a BASIC language compiler. The primary drawback is that no syntax checking
occurs until you download the complete program and first run it. A second draw-
back is that, especially for longer programs (>100 lines), it is time-consuming to
transfer the code into the test set when you want to run it.
Chapter Three 3 1
5. When saving the completed program, save it as an ASCII file. Some word pro-
cessors have ASCII options where you need to specify CR/LF at the end of each
line. It is important that each line end with a carriage return, line feed.
6. Experiment with a short program first to make sure everything is working
correctly.
Transferring Programs from your Text Editor into the Test Set
Programs 100 Lines or Shorter
For short (<100 lines) programs, it is convenient to use an ASCII file transfer pro-
gram running on your PC to send your program down to the test set over RS-232 a
line at a time directly into the IBASIC program entry field. In this case, you set up
the test set to receive serial ASCII characters by positioning the test set cursor at
the IBASIC command entry field as explained in Method 2 in the section titled
“Selecting the IBASIC Command Entry Field”. With this setup, when ASCII charac-
ters are sent, they appear on the IBASIC command entry field. When a
carriage return, line feed is received, the test set will parse the line into the
IBASIC program memory. Each line takes about two seconds to scroll in and be
parsed. As you can see, this becomes very time consuming for long programs.
An alternative for longer programs is discussed later.
Start off by making sure there is no program in the IBASIC program memory by
executing a SCRATCH A command.
For the “short” program transfer method, using Microsoft Windows Terminal,
select the Hyperterminal application in the Accessories Group. Set it up as de-
scribed in Chapter 2 with the following additions:
At this point, the IBASIC command entry line will intensify and characters will
scroll in left to right. As each line is finished you will see the IBASIC run time
indicator (upper right) come on for about 0.5 seconds as the line is parsed. If an-
other line is sent before this parsing is complete, the test set will beep indicating
an error, and the next line of the transfer will be rejected. If this happens, you need
to halt the transfer, increase the delay between line to a slightly higher number,
and start the transfer again from the beginning. When all lines have transferred,
you can list the program to verify that it was completely received. At this time, the
program is ready to run. You can either key in RUN from your terminal emulator
or press the (K1) Run user key in the TESTS (IBASIC CONTROLLER) screen.
Make sure to not press the Run Test user key in the TESTS (main menu) screen as
this will scratch the program you just loaded and look to the memory card for a
different program.
3 2 Chapter Three
To perform the ASCII text file transfer, an IBASIC program running in the test set is
required to manage the transfer. A suitable program titled “ASCII_DN” (for ASCII
downloader) is listed below.
10 ! ASCII_DN
20 ! Program to download ASCII program file from PC to the test set via RS-232
30 ! ##############################################################
40 !
50 ! This program must be loaded into the test set and run on the test set.
60 ! It directs ASCII characters that come in the serial port 9 to a file
70 ! named “TEMP_CODE” on an SRAM card. After the transfer is complete,
80 ! you must SCRATCH this program and GET the transferred program from
90 ! the “TEMP_CODE” file.
100 !
110 ! ##############################################################
120 COM /File_name/ File_name$[10]
130 DIM In$[200]
140 File_name$=”TEMP_CODE” ! File name on RAM card
150 CLEAR SCREEN
160 CLEAR 9 ! Clears HP 8920 serial bus
170 OUTPUT 800;”*RST”
180 ! Set up HP 8920 serial bus to receive ASCII text file
190 OUTPUT 800;”CONF:SPORT:BAUD ‘9600’;PAR ‘None’;DATA ‘8 Bits’”
200 OUTPUT 800;”CONF:SPORT:STOP ‘1 Bit’;RPAC ‘Xon/Xoff’;XPAC ‘Xon/Xoff’”
210 OUTPUT 800;”CONF:SPORT:SIN ‘IBASIC’;IBECHO ‘OFF’”
220 CALL Code(File_name$,In$)
230 END
240 Purge_it:SUB Purge_it ! Purges File_name on card
250 COM /File_name/ File_name$
260 OFF ERROR
270 PURGE File_name$&”:INTERNAL”
280 SUBEND
290 Code:SUB Code(File_name$,In$)
300 ON ERROR CALL Purge_it ! Branches if CREATE statement
returns error
310 CREATE ASCII File_name$&”:INTERNAL”,650
! Creates file on card
320 OFF ERROR
330 ASSIGN @File TO File_name$&”:INTERNAL”
340 PRINT TABXY(1,5);”Ready to receive ASCII file data.”
350 PRINT
360 Begin:ON TIMEOUT 9,1 GOTO Begin !Loops until data begins coming
370 ENTER 9;In$
380 OUTPUT @File;In$
390 PRINT In$
400 Transfer:LOOP !Loops to bring in ASCII file line
at a time
410 ON TIMEOUT 9,5 GOTO Done !Exit loop if data stops for >5 sec.
420 ENTER 9;In$
430 PRINT In$
440 OUTPUT @File;In$
450 END LOOP
460 Done:ASSIGN @File TO *
470 CLEAR SCREEN
480 ! Returns HP 8920 serial port input to “instrument” allowing serial comm
490 ! via the IBASIC entry field.
500 OUTPUT 800;”CONF:SPORT:SIN ‘Inst’;IECHO ‘ON’;IBECHO ‘ON’”
510 PRINT TABXY(1,5);”Down load of ASCII file is complete.”
520 SUBEND
Chapter Three 3 3
This program runs on the test set to direct ASCII characters coming in serial port 9
directly to a file on a RAM card titled “TEMP_CODE”. This program creates the
TEMP_CODE file on the card with a size of 650 records (166 KB or enough for
about 6600 lines of ASCII text — see the Appendix for memory considerations).
When this program is running, it displays “Ready to receive ASCII file data”.
At that point, you need to initiate sending the ASCII text file representing your
program from your computer over the RS-232 serial bus. Below are two ways to
initiate sending an ASCII file from your PC. They both require you to have entered
the “ASCII_DN” program into the test set's IBASIC controller memory. This can
be done by either typing it in using the EDIT mode described earlier, or download-
ing it from an ASCII text file a line at a time as explained earlier.
At this point, you should see each line of your program rapidly scroll across the
screen of the test set. When it is finished, the download program will display
“Down load of ASCII file complete.”
Before running your transferred program, you must SCRATCH the IBASIC pro-
gram memory to remove the ASCII_DN download program from the test set's
memory.
Next, execute a GET “TEMP_CODE” command on the IBASIC command entry
line. This will bring the ASCII text into the IBASIC program memory. It is now
ready for execution.
3 4 Chapter Three
6. Pace character 0
7. Character pacing 15
8. Line pacing 10
9. CR translation NONE, LF
10. Translation NONE (This is important since the default setting will strip line
feeds and this will cause the transfer to never begin).
11. Now use the (Escape) key to get out of the set up mode and back to the main
screen.
12. Press (Alt) (F10) to access the help menu.
13. To begin sending the file, select PgUp.
14. In the UPLOAD screen, select 7 ASCII protocol.
15. Run the ASCII_DN downloader program on the test set.
16. When the test set displays “Ready to receive ASCII file data”, press
(Enter) on your PC and the transfer will begin. At this point, you should see
each line of your program rapidly scroll across the screen of the test set. When
it is finished, the download program will display “Down load of ASCII file
complete.”, and your program file will be on the memory card in the “TEMP-
CODE” file.
17. Before running your transferred program, you must SCRATCH the IBASIC
program memory to remove the ASCII_DN download program from
test set memory.
18. Next you must execute a GET “TEMP_CODE” command on the IBASIC com-
mand entry line to bring the ASCII text into the IBASIC program memory. It is
now ready for execution.
19. To run this program on the test set IBASIC controller, execute the RUN
command.
Chapter Three 3 5
I/O from IBASIC Programs
There are three ports providing I/O (input/output) to peripherals external to the
test set: two serial ports and one HP-IB (IEEE-488.2) port. To bring data in, use
the IBASIC ENTER command. To send data out, use the OUTPUT command.
Please reference the Test Set Instrument BASIC Programmer’s Guide for a com-
plete description of these and other IBASIC commands.
3 6 Chapter Three
More Serial Port 10 Information
Serial port 10 is sometimes called serial port B in test set documentation and pro-
grams.
The default serial port 10 settings are the same as serial port 9. They are:
1. Serial Baud rate: 9600
2. Parity: None
3. Data Length: 8 Bits
4. Stop Length: 1 Bit
5. Receive and Transmit Pacing: Xon/Xoff
6. Serial in: Not available for Port 10
7. IBASIC and Instrument Echo: Not available for Port 10
There is no test set screen that shows serial port 10 settings. Therefore, to know
serial port 10 settings, you must either set them or query them.
For example, you can query the baud rate of the serial port 10 with the following
IBASIC program:
10 DIM Setting$[20]
20 OUTPUT 800;”CONF:SPB:BAUD?” !Initiates a query.
30 ENTER 800;Setting$
40 DISP Setting$
50 END
This program returns a quoted string. For example, if the baud rate is set to 9600,
the returned ASCII character string is “9600”. These settings are held in non-vola-
tile memory. They remain in place until you change them.
Chapter Three 3 7
Chapter Four Chapter 4
Common Mistakes and Helpful Hints
Because of the test set’s wide functionality, a large body of IBASIC syntax has
been defined to provide complete HP-IB control. The Programmer's Guide lists
this syntax in a hierarchical presentation to help you understand the sequence
you must follow in building command strings. The following section lists several
helpful programming guidelines you can use to develop your program more
quickly.
Guideline #1:
Suggested Measurement Sequence and Example Program
When taking readings from the test set always follow this general sequence:
1. Start from the PRESET state. This is done manually with the green
(PRESET) key and over HP-IB with the *RST command. This initial step
allows you to start making settings beginning with most fields in a known
state. If you do not do this in your program, you will have to make many more
settings to assure the desired instrument state.
2. Make your measurement manually on the front panel of the test set and record
in sequential order the screens you select and settings within each screen.
3. Begin writing your program using settings you recorded from above. As your
manual procedure requires changing screens, use the DISPlay command to
select the desired screen followed by the correct syntax to set the desired
field. As discussed in Chapter 3 of this product note, when programs are run-
ning in the IBASIC controller, you will not see the “displayed” screen since
the IBASIC screen is always displayed. However, the IBASIC DISPlay com-
mand assures all settings and measurements you want in a particular screen
are available. If you try to take a reading from a screen that is not made avail-
able by using the DISPlay command, the test set will return HP-IB Error:-
420 Query UNTERMINATED, or HP-IB Error: -113 Undefined header.
4. The ENCoder and DECoder require a further level of syntax to display the
desired screen. To display the desired ENCoder or DECoder screen, you
first have to send DISP ENC then send ENC: MODE ‘DTMF’ for example.
5. Make sure measurement state is ON. This is the default preset condition for
most measurements but if a previous program has set the state to OFF, the
measurement will not be available. The program will halt with HP-IB
error:-420 Query UNTERMINATED.
6. Trigger a reading if you are using single trigger. The default trigger mode is
repetitive causing the test set to trigger itself. In this case, a separate trigger
command is not necessary.
7. Send the MEASure query command to initiate a reading. This will place the
desired reading in the HP-IB output register. If you are using AF Analyzer
measurements of SINAD, Distortion, Signal to Noise Ratio,
AF Frequency, DC Level, or Current, you must first SELect the appropriate
measurement. (See HP-IB syntax diagrams for MEASure.)
8. Use the ENTER statement to transfer the reading to a variable or string array
in the context of your program.
3 8 Chapter Four
The following example illustrates how to make settings and then take a reading
from the test set. This setup takes a reading from the spectrum analyzer marker
after tuning it to the RF generator output frequency.
Example Program
10 Addr=714
20 OUTPUT 714;”*RST” ! Preset to known state
30 OUTPUT Addr;”TRIG:MODE:RETR SING” ! Sets single trigger
40 OUTPUT Addr;”DISP RFG” ! Selects the RF Gen screen
50 OUTPUT Addr;”AFG1:FM:STAT OFF” ! Turns FM OFF
60 OUTPUT Addr;”RFG:AMPL -66 DBM” ! Sets RF Gen ampl to -66 dBm
70 OUTPUT Addr;”RFG:FREQ 500 MHZ” ! Sets RF Gen freq to 500 MHz
80 OUTPUT Addr;”RFG:AMPL:STAT ON” ! Turns RF Gen output ON if
! it was OFF.
90 OUTPUT Addr;”DISP SAN” ! Selects Spec Anal screen
100 OUTPUT Addr;”SAN:CFR 500 MHZ” ! Center Frequency 500 MHz
110 ! —————— MEASUREMENT SEQUENCE—————————
120 OUTPUT Addr;”TRIG” ! Triggers reading
130 OUTPUT Addr;”MEAS:SAN:MARK:LEV?” ! Query of Spec Anal marker level
140 ENTER Addr;Lvl ! Places measurement result in
! variable Lvl
150 DISP Lvl ! Displays value of Lvl
160 END
After preset, the RF generator is set to 500 MHz, -66 dBm from the RF IN/
OUT port with modulation turned off.
Then the spectrum analyzer is set to the same frequency as the generator
with input from the RF IN/OUT port. This allows the spectrum analyzer to
measure the RF generator with no external connections. In the beginning the trig-
ger mode is set to SINGle so that a TRIGger command is necessary during the
measurement sequence. This program illustrates the proper sequence of making
settings and taking readings from the test set.
The measurement taken is the level of the spectrum analyzer marker. The marker
is always tuned to the center frequency of the spectrum analyzer display after
preset. With the RF generator output and spectrum analyzer input both directed to
the RF IN/OUT port, the two will internally couple with 46 dB of gain. So the
measurement will read a level of approximately -20 dBm. (-66 +46) This is
convenient for the demonstration since no external cables are required.
Guideline #2
If the Program Stops or “Hangs Up”
If your program stops or “hangs up” when trying to ENTER the measurement, it is
likely that the measurement you’re trying to read is not available. Here are sev-
eral reasons that can happen.
1. You have not displayed the screen where your measurement is presented
before querying the measurement.
Chapter Four 3 9
2. The squelch control is set too high. If you are trying to make TX measurements
and the test set is squelched, most measurements are unavailable.
3. The RF Input is set to ANT while trying to read TX power. TX power is not
measurable with the input port set to antenna.
4. The input signal to the test set is very unstable causing the test set to
continuously autorange. (You should see this when setting up the measurement
manually).
5. While setting up the measurement manually, if the measurement field displays
——, this means the measurement is not available.
6. You have set single trigger mode (TRIG:MODE:RETRig SINGle) and have
not triggered a new reading before the ENTER command.
7. You are trying to make an FM deviation or AM depth measurement while in the
RX test screen or after executing instrument preset. In these cases, the test set
is in the RX test screen where FM or AM measurements are not available.
Guideline #3
Use of Single Quotes and Spaces
The test set's HP-IB syntax requires proper use of single quotes and spaces. The
syntax diagrams in the Programmer's Guide show where single quotes are
needed and where spaces are needed.
Example:
OUTPUT 714;DISP<space> AFAN
OUTPUT 714;AFAN: DEMP<space>Off
Notice the use of the single quotes around the Off command. If you leave out the
space in the second line, the test set will display “ERROR 103 Invalid Separator”.
Guideline #4
Improve Measurement Speed
There are several methods to improve measurement speed. Time-to-first-reading
after making new settings is usually much slower than the repetitive reading rate
once the first reading has been returned. The main contributor to first-reading
measurement time is hardware autoranging. See “Speeding Up HP-IB Measure-
ments” in The Programmer's Guide under "Advanced Operation" for more details.
You can eliminate autoranging by first establishing the expected signal levels into
the test set (both RF and AF). With these signal levels present, the test set will
autorange, allowing you to determine the attenuation and gain settings of the RF
input attenuator in the RF ANALYZER screen, and the various IF and Audio gains
shown in the AF ANALYZER screen. In your program, select gain control hold
(default is auto) and make the settings you recorded earlier. When your program
runs, the signal levels into the test set need to remain relatively constant because
autoranging has been disabled.
4 0 Chapter Four
The second improvement you can do is to set all unused measurements to
STATe OFF. This will primarily speed up reading repetition rate.
Disable RF autotuning to achieve the third speed improvement.
Guideline #5
Combine Output Statements
To reduce the number of OUTPUT statements used to make the desired settings
within one screen, string together multiple settings within one OUTPUT statement.
To do this, you first make one setting, then back up one level in the syntax hierar-
chy and make the second setting and so on. For normal forward hierarchical pro-
gression of syntax you use the : (colon) separator. To back up one level of syntax
hierarchy you use the ; (semicolon) separator. The ;: takes you back to the high-
est level of hierarchy.
As documented in the “Using HP-IB” section of the Programmer's Guide, you must
follow the given hierarchy to make settings for each field. The syntax diagrams in
the Programmer's Guide show this hierarchy. You can use the ; to string together
the three settings made to the RF generator in the example program listed under
Guideline #1 for lines 60, 70 and 80.
In a second example, the following lines can be used to set the AMPS SAT tone
frequency and deviation.
In another example, if you want to set the RF generator to accept external modula-
tion from the rear panel input and set the amount of modulation all in the same
OUTPUT statement, use the following line:
Guideline #6
Ensure Fields are Active with State On
When making settings to fields that can be turned OFF with the STATe ON/OFF
command ((OFF/ON) key on the front panel), make sure the STATe is ON if you
want that function to be active. Note that if the STATe is OFF, just setting a
numeric value in the field will not change the STATe to ON. (This is different
than how it works on the front panel.) You have to explicitly send the STATe ON
command. The previous example involving the RF Generator external modulation
input illustrates the proper use of the STATe ON command to activate the func-
tion after the desired value is set. STATe ON is the preset state for most functions
affected by the STATe command. External modulation input is one exception.
Chapter Four 4 1
In another example, if you want to set a new AMPS encoder SAT tone deviation
and the current STATe is OFF, use the following line: (note the use of ; to back up
one level in the hierarchy so you can make more than one setting in a single line.)
If you just want to turn on the SAT tone without affecting the current setting, use
the following line:
Guideline #7
HP-IB Measurements Return in HP-IB Units Only
When querying measurements or settings over HP-IB, the test set always returns
numeric values in HP-IB units, regardless of the current display unit. HP-IB units
are units of Hz, volts, watts, and seconds, for example. Display units are what you
see on the front panel display. This means that when the test set front panel is
displaying TX frequency as 835.02 MHz, and you query this measurement over
HP-IB, the value returned will be 835020000. Another way of looking at this is that
changing display units will not change HP-IB units. (Note that making numeric
settings over HP-IB can be done in a wide variety of units.)
Guideline #8
HP-IB Syntax Index
When looking for HP-IB syntax in the Programmer's Guide, it helps to have an
understanding of the organizational structure of the syntax diagrams. The syntax
diagrams are divided into four parts as shown below. This list is in the same order
as the pages appear in the HP-IB section of the Programmer's Guide.
FUNCTIONALITY
(listed alphabetically)
AF ANalyzer
AF Generator 1
AF Generator 2 Pre-Modulation Filters
AF Generator 2/ENCoder
CONFigure, I/O Configure
DECoder
OSCilloscope
RF ANalyzer
RF Generator
Radio Interface
Spectrum ANalyzer
4 2 Chapter Four
NUMERIC SETTINGS
(Number Setting Syntax: Integer,
Real and Multiple Real)
Integer Number Setting Syntax
Real number setting syntax
Multiple Real Number Setting Syntax
Make Numeric Settings
Set Display Units
Set Increment
HP-IB Units (UNITs)
STATE ON/OFF
MEASUREMENT QUERY
(MEASure)
MEASure
AF ANalyzer (AFRequency)
OSCilloscope
RF ANalyzer (RFRequency)
Spectrum ANalyzer
DECoder
Trigger
Multiple Number Measurement Syntax
Number Measurement Syntax
Units
Average
HI / LO limits
Meter
Reference Set
STATe (ON/OFF)
OTHER
(Miscellaneous)
DISPlay (Screen)
PROGram (Subsystem)
TESTs (Environment)
STATus
Save / Recall Registers
Chapter Four 4 3
Appendix Appendix
Description of Memory and Mass Storage
Card (SRAM)
SRAM memory cards are the most convenient media for storing user-written
programs.
Hewlett-Packard recommends this as the primary media for program
storage and development.
Card (OTP)
As mentioned in Chapter 1, Hewlett-Packard offers many types of IBASIC
programs (the HP 11807A/E radio test software and HP 11807B cell site test
software) on the ROM version of the memory card.
Disk Drive
External hard or flexible disk drives can be used to store user-written
programs and data. They must be connected to the test set via the
HP-IB interface.
Hewlett-Packard does not recommend this media for program storage or
development because of slow program storage and retrieval times.
RAM
Part of the test set’s on-board RAM memory is used to store IBASIC
programs, store data from programs, and store SAVE/RECALL register
information. (SAVE/RECALL registers can also be stored in on-board RAM,
memory cards, or disk drives).
Hewlett-Packard does not recommend this media for permanent program
storage because of the chance of unintentional program erasure.
It is excellent for dedicated applications where the software will not
change often.
4 4 Appendix
Figure A-1. Test set on-board mass storage locations and size
Appendix 4 5
Mass Storage Mass Storage Type Physical Location Mass Storage
Name and Format Volume Specifier
Disk Drive • HP-IB Disk Drive • Separate unit from :,7xx,n (where 7xx is
Test Set HP-IB address, with
• Media is typically
3 1/2" flexible disk • Connected by xx=00 to 30; and n is
or hard disk drive HP-IB interface unit #)
• Flexible disk is removable
• Hard disk is usually
not removable
• HP LIF compatible
• DOS compatible
4 6 Appendix
Mass Storage Mass Storage Type Physical Location Mass Storage
Name and Format Volume Specifier
Appendix 4 7
Listing Memory Contents
By executing the CATalog command, the IBASIC controller will display the
contents of memory.
• To display the contents of the default mass storage location (whether SRAM
memory card, disk drive, or on-board RAM):
CAT
• To display the contents of any specific memory location, use CAT followed by
the mass storage address. The following example lists the contents of on-board
RAM memory unit 0:
CAT “:MEMORY,0,0”
If you have firmware revision 14.XX or higher, press (TESTS). Under Select
Procedure Location, select "ROM." Under Select Procedure Filename, select
"RAM_USAGE." Press k1 (Run Test.) RAM memory usage information will be
displayed on the screen. If your firmware revision is lower than 14.XX, there is no
direct method to determine total memory space. To indirectly determine the total
memory space in your test set, follow steps C & D below:
4 8 Appendix
B. Initializing a RAM disk to use a known amount of RAM space.
For example:
128 KB = 128 x 1024 bytes = 131,072 bytes
131,072 bytes / 256 bytes/record = 512 records
1. Press (TESTS)
2. Under Location, select ROM
3. Under Procedure:, select RAM_MNG in HP 8920A and HP 8921B, or
IB_UTIL in HP 8920B and HP 8924C (to use the RAM_MNG utility program)
4. Press (k1) (the Run Test softkey)
5. Press (k1) (the Yes softkey)
6. Press (k3) (the Int RAM softkey)
7. Press the (5),( 1),( 2), and (ENTER) keys (to initialize 512 records
for unit 0)
8. Press (k1) (the Yes softkey)
C. Determine the percentage of total RAM still available (free memory) (Rev. <14.XX)
1. Under To Screen, select the RF GEN screen
2. Press (SHIFT) (SAVE)
3. Information at the top of the display will appear like this example:
(number/name; 65% free memory)
D. Determine the total memory space in your test set (Rev. <14.XX)
TMKB = Total Memory in KB (kilobytes)
% FM = % Free Memory (65% for this example + 2% for RAM overhead
128 = space initialized in RAM in KB
Thus, total RAM in this test set is 384 KB. Record this total for future use.
Appendix 4 9
Saving and Retrieving Programs
There are two groups of IBASIC commands used to save and retrieve files.
• SAVE and GET are used for ASCII files. ASCII files occupy approximately 2.5
times less memory space than PROGRAM files. The drawback is that they
transfer into the test set more slowly. All HP 11807A and HP 11807B test pro-
grams are saved as ASCII files to conserve space on memory cards.
• STORE and LOAD are used for PROGRAM files. PROGRAM files are about
2.5 times larger than the equivalent ASCII files because PROGRAM files have
been partially compiled. Compiled code occupies more space because IBASIC
is a high level language in which a single command (represented in ASCII)
actually instructs the computer to execute many machine steps.
The following examples show the command format for the IBASIC keywords
SAVE, GET, STORE, and LOAD.
1. To save an IBASIC program as an ASCII file to the default mass storage location
(where My_file is the unique name of the file):
SAVE “My_file”
2. To retrieve a PROGRAM file (from RAM disk unit 3 in the following example):
LOAD “My_file:MEMORY,0,3”
Memory Cards
This media was chosen for test set program and data storage because of its small
physical size and ruggedness. The SRAM card is recommended for program stor-
age because it is convenient, transportable, and requires no peripheral hardware.
• Catalog
To catalog the card if it is not the default mass storage:
1. CAT “:INTERNAL”
• Each memory card is treated as one mass storage unit in IBASIC, so there is no
mass storage unit number or volume number.
SRAM Cards
SRAM cards provide removable read/write memory for programs, similar to a
flexible disk. Data and files can be stored, re-stored, read, or erased as needed.
SRAM Card HP Model Numbers:
HP 85700A — 32 KB
HP 85702A — 128 KB
HP 85704A — 256 KB
HP 85705A — 512 KB
5 0 Appendix
Battery
SRAM memory cards require a battery to maintain stored information. The lithium
battery is HP part number 1420-0383 (or non-HP type CR2016). A fresh battery in
an SRAM card typically retains data for over 1 year at 25 oC. To ensure data
retention, replace the battery annually. (See the Test Set's User’s Guide for more
information about replacing the SRAM card battery).
When a SRAM card is plugged into an operating test set, the card draws power from
the test set. This allows you to change the battery while the card is powered by
the test set. NOTE: Don't remove the battery unless the card is in a powered-up
test set.
Card Insertion and Removal
Memory cards may be inserted and removed with the test set powered on or off.
Initialization
When you initialize an SRAM card, you do not specify the number of records. The
initialization process always initializes the whole card. Initialization destroys any
existing files on the SRAM card. There are two initialization methods for cards:
1. Use the IBASIC Command — INITIALIZE “:INTERNAL”
2. Use the RAM_MNG program located in on-board ROM. (Note: Do not use this
method if you have a program you want to keep in test set memory. Loading the
RAM_MNG program will erase your program).
Write-Protect Switch
Slide the switch on the end of the card to the “SAFE” position to prevent writing to
the card (as shown on the label on one side of the HP SRAM cards).
Appendix 5 1
• Memory cards may be inserted and removed with the test set powered on or off.
• OTP cards cannot be programmed by a test set. A special memory card
programmer (not available from HP) is required to save files to OTP cards.
• Catalog
To catalog the card if it is not the default mass storage:
CAT “:INTERNAL”
5 2 Appendix
On-board RAM is different than other test set mass storage media. When
INITIALIZEd for use as a RAM disk, that portion is no longer available to the test
set for other RAM functions (such as containing an executable program or save/
recall registers). The programmer should INITIALIZE only the portion needed to
leave enough to allow other functions to operate properly.
Initialization
Before you save programs on RAM disk, you need to INITIALIZE enough space for
your program. Initialization destroys any existing files on the RAM disk unit. A
typical INITIALIZE command looks like this:
INITIALIZE “:MEMORY,0,0”,50
(where 50 is the number of records reserved for RAM disk)
There are 256 bytes/record. For a test set with 640 KB total memory avail-
able, you could theoretically initialize a RAM disk for a maximum of 640
kilobytes / 256 bytes/record = 2560 records. (However, this will leave no
space to GET and run the program).
Disk Drives
The test set supports HP-IB disk drives that operate under the Hewlett-Packard
Logical Interchange File (LIF) format with CS-80 command structure. In the past,
Hewlett-Packard has manufactured both flexible and hard disk drives of this type.
Here is a partial list of the previously-manufactured HP model numbers which will
operate with the test set:
• HP 9122A, HP 9122C, and HP 9122D,S single and dual 3 1/2" flexible disk drives
• HP 9133H,L and HP 9153A,B,C single 3 1/2" flexible disk plus fixed
hard disk drive
• HP 9134H,L, HP 9153C, and HP 9154A,B fixed hard disk drives
(The HP 9121 series of disk drives are not compatible with the test set). These
disk drives or compatible ones available from other manufacturers can be
Appendix 5 3
connected directly to the HP-IB port on the back of the test set and used almost
identically to the other mass storage media described in this chapter.6
Because the disk drive is external to the test set and connected via HP-IB, the test
set must be configured as a controller on the HP-IB bus before accessing the disk
drive. To do this, make the following settings:
1. Access the I/O CONFIGURE screen
2. On the Mode field, select Control
You can designate the disk drive as default memory by using the MSI (Mass Stor-
age Is) command. With an external disk drive, you can leave out the volume num-
ber so the command can be shortened to:
1. MSI “:,<device selector>,<unit number>”
2. MSI “:,7xx,m” (where 7xx = HP-IB address and m = unit number)
3. MSI “:,700,0”
The HP-IB address for a disk drive is typically 700, but can be selected from
700 to 730.
In most cases, the unit number is either 0 or 1 to indicate a left-hand disk drive or
a right-hand disk drive of a two-drive disk system.
Memory access and storage operations typically require more time with a disk
drive attached to the test set than with RAM disk or memory cards.
Initialization is just like the card media. All existing files on the media will be
destroyed. (For more information, see “INITIALIZE” in the HP Instrument BASIC
Language Reference. Also, review the documentation with the disk drive to as-
sure compatible initialization is performed since some drives can be configured
for CS-80, DOS, and other file format options). For example, you could use this
command to initialize the left-hand disk drive at HP-IB address 700 of a dual-
floppy drive:
INITIALIZE “:,700,0”
To save a program to a disk drive when it is the default memory location, execute
the following command:
SAVE “My_file”
To save to a disk drive when it is not the default memory, execute the following
command:
SAVE “My_file:,700,0”
NOTE:
On the bottom of the test set's TEST (External Devices) screen is a field titled
External Disk Specification. This field is used to set the external disk location
in conjunction with the TESTS environment discussed in the Test Set's User's
Guide in the “Tests” section.
6
One currently-manufactured disk drive which has been tested to operate with the test set: Model 7312
Option 400 – 3 1/2" Flexible Disk plus 120 MB Winchester Hard Disk Drive (CS-80 and LIF
5 4 Appendix compatible). Contact: Bering Technology, 1357 Dell Ave., Campbell, CA 95008 USA; (408) 379-6900.
Appendix 5 5
For more information about Hewlett-Packard test and
measurement products, applications, services, and a
For more information about the HP 8920 Test Set Family visit our current sales office listing, visit our web site at:
web site at: http://www.hp.com/go/tmdir
http://www.hp.com/hp8920support You can also contact one of the following centers and
ask for a test and measurement sales representative.
Available literature may include: product overviews, technical specifications,
product notes, configuration guides, application notes, and more. United States:
Hewlett-Packard Company
Warranty This test set is backed by Hewlett-Packard with a one-year warranty and world class support Test and Measurement Call Center
services. With HP sales and service centers worldwide, you can be assured of getting the global support P.O. Box 4026
that you need. Englewood, CO 80155-4026
(tel) 1 800 452 4844
Canada:
Hewlett-Packard Canada Ltd.
5150 Spectrum Way
Mississauga, Ontario
L4W 5G1
(tel) 1 877 894 4414
Europe:
Hewlett-Packard Company
European Marketing Organisation
P.O. Box 999
1180 AZ Amstelveen
The Netherlands
(tel) (31 20) 547 9999
Japan:
Hewlett-Packard Japan Ltd.
Measurement Assistance Center
9-1, Takakura-Cho, Hachioji-Shi,
Tokyo 192-8510, Japan
(tel) (81) 426 56 7832
(fax) (81) 426 56 7840
Latin America:
Hewlett-Packard
Latin American Region Headquarters
5200 Blue Lagoon Drive, 9th Floor
Miami, Florida 33126 U.S.A.
(tel) (305) 267-4245
(tel) (305) 267-4220
(fax) (305) 267-4288
Australia/New Zealand:
Hewlett-Packard Australia Ltd.
31-41 Joseph Street
Blackburn, Victoria 3130
Australia
(tel) 1 800 629 485 (Australia)
(tel) 0800 738 378 (New Zealand)
(fax) (61 3) 9210 5489
Asia Pacific:
Hewlett-Packard Asia Pacific Ltd.
17-21/F Shell Tower, Times Square,
1 Matheson Street, Causeway Bay,
Hong Kong, SAR
(tel) (852) 2599 7777
(fax) (852) 2506 9285