Keysight (Agilent) 4352B Users Guide

HP 4352B VCO/PLL Signal Analyzer
Manual Supplement for HP
Instrument BASIC Users Handbook
SERIAL NUMBERS
This manual applies directly to instruments with serial number prex JP1KE .
For additional important information about serial numbers,
read \Instruments Covered by This Manual" in Appendix A.
HP Part No. 04352-90045
First Edition
Notice
The information contained in this document is subject to change without notice.
This document contains proprietary information that is protected by copyright. All rights are
reserved. No part of this document may be photocopied, reproduced, or translated to another
language without the prior written consent of the Hewlett-Packard Company.
Hewlett-Packard Japan, LTD.
Kobe Instrument Division
1-3-2, Murotani, Nishi-ku, Kobe-shi,
Hyogo, 651-22 Japan
c
Copyright 1997 Hewlett-Packard Japan, LTD.
Manual Printing History
The manual printing date and part number indicate its current edition. The printing date
changes when a new edition is printed. (Minor corrections and updates that are incorporated
at reprint do not cause the date to change.) The manual part number changes when extensive
technical changes are incorporated.
June 1997
::::::: :::::: ::::::: ::::::: :::::: ::::::: ::::::: :::::: ::::::: ::::::: :::::: ::
First Edition
iii
Typeface Conventions
Bold
Italics
Computer
4
HARDKEYS
5
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
SOFTKEYS
Boldface type is used when a term is dened. For example:
icons
are
symbols.
Italic type is used for emphasis and for titles of manuals and other
publications.
Italic type is also used for keyboard entries when a name or a variable
must be typed in place of the words in italics.For example:
lename
type the name of a le such as
means to type the word
file1
copy
, to type a space, and then to
.
copy
Computer font is used for on-screen prompts and messages.
Labeled keys on the instrument front panel are enclosed in45.
NNNNN
Softkeys located to the right of the LCD are enclosed in
.
iv
How to Use This Manual
This guide will help you learn how to eectively use HP Instrument BASIC (IBASIC) of the
HP 4352B VCO/PLL Signal Analyzer. It will help you to perform typical operations involving
program creation, editing, and execution. It will also show you how to save and recall
programs, and how to make the best use of the HP Instrument BASIC's front-panel and
keyboard interface. Here is a brief guide to help you locate the necessary information in this
manual.
Chapter 2 introduces the analyzer's HP Instrument BASIC system and describes how to
connect and use a keyboard.
Chapter 3 and Chapter 4 show creating, getting, and saving programs to teach you front
panel and keyboard operation.
Chapter 5 introduces you to the editing environment.
Chapter 6 describes interfacing features for graphics, external connector to trigger
RUN/CONTinue of a program, and I/O port.
Chapter 7 introduces special features for auto loading a program, and the On Key Label
function (softkeys dened in a program). This chapter also describes techniques for speeding
up your programs.
Chapter 8 summarizes the unique features specied for the analyzer
Appendix A contains the information required to adept this manual to earlier versions or
congurations of the analyzer than the current printing date of this manual.
Appendix B provides references for BASIC commands specic to the analyzer's HP
Instrument BASIC.
Appendix C provides a handy reference guide to the analyzer's HP Instrument B
denitions for the mini-DIN keyboard.
Appendix D describes the softkeys that are used for the HP Instrument B
.
ASIC's key
ASIC operations.
v

Contents

1. Welcome to HP Instrument BASIC
How to Use This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
2. Introduction to the System
Overview of HP Instrument BASIC ...................... 2-1
Connecting the Keyboard .......................... 2-2
Using HP Instrument BASIC for the First Time . . . . . . . . . . . . . . . . . 2-3
Allocating Screen Area for HP Instrument BASIC ...... ...... .. 2-3
Setting the Size of Memory Area for HP Instrument BASIC . . . . . . . . . . 2-3
Using the Keyboard ............................. 2-4
What can the Keyboard be Used for?
....................
Performing Calculations ..........................
Entering Arguments to the Active Analyzer Functions . . . . . . . . . . . .
Entering Titles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Executing Commands ...........................
Using Softkeys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Entering BASIC Statements from the Front Panel Keys . . . . . . . . . . . . .
3. Writing and Running Programs
Getting into/out of the EDIT Mode ...... ...... ...... ....
Getting into the EDIT Mode ........................
Getting out of the EDIT Mode .......... ...... ..... ..
Writing Programs ..............................
Controlling the Analyzer . . . . . . . . . . . . . . . . . . . . . . . . . .
Running (Executing) Programs ........................
Listing Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Listing on the Screen ...... ...... ...... ...... ... 3-4
Listing to the Printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
2-4
2-4
2-4
2-5
2-5
2-6
2-6
3-1
3-1
3-1
3-2
3-2
3-4
3-4
4. Saving and Getting Programs
Saving Programs (SAVE) ........ ...... ...... ...... . 4-1
Listing File Names (CAT)...... ...... ...... ...... ...
Listing to Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Listing to Printer ...... ...... ...... ...... .....
Getting Programs (GET) ...........................
4-2
4-2
4-3
4-3
Contents-1
5. Editing Programs
Getting Into/Out of the EDIT Mode ...................... 5-1
Getting Into the EDIT Mode using the Front Panel Keys ...... ..... 5-1
Entering the EDIT Mode from the Keyboard . . . . . . . . . . . . . . . . . 5-1
Getting Out of the EDIT Mode ........ ..... ...... .... 5-1
Editing Programs in the EDIT Mode . . . . . . . . . . . . . . . . . . . . . . 5-2
Deleting Characters .... ...... ...... ...... ...... 5-2
Back Space .... ...... ...... ...... ..... .... 5-2
Deleting Characters ........................... 5-2
Inserting Characters .. ...... ...... ...... ...... .. 5-2
Moving the Cursor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Scrolling Lines and Pages . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Scrolling Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Scrolling Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Jumping from the Current Line . . . . . . . . . . . . . . . . . . . . . . . 5-3
Jumping to a Specied Line ....................... 5-3
Jumping to the Top/Bottom of a Program ................. 5-3
Inserting/Deleting/Recalling Lines . . . . . . . . . . . . . . . . . . . . . . 5-3
Clearing Line ............................... 5-3
Renumbering Program Line Numbers .......... ...... ..... 5-3
6. Program I/O
Graphics ...... ...... ...... ...... ...... ....
HP Instrument BASIC Graphics Commands .. ...... ...... ...
Hard Copies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PRINT .................................
Initial settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example of Graphics Programming .....................
Using the External RUN/CONT Connector . . . . . . . . . . . . . . . . . . .
File System Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using the I/O Port in BASIC Programs . . . . . . . . . . . . . . . . . . . . .
6-1
6-2
6-2
6-2
6-2
6-2
6-3
6-3
6-4
7. Special Features and Advanced Techniques
Autoloading and Running a Program Automatically (AUTOST) .........
On Key Label Function . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Increasing Program Speed ...... ...... ...... ...... .. 7-2
8. Analyzer Specic HP Instrument BASIC Features
Available I/O Interfaces and Select Codes ...... ...... ...... . 8-1
Storage Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1
Built-in Flexible Disk Drive . . . . . . . . . . . . . . . . . . . . . . . . .
RAM Disk Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
HP-IB Commands for HP Instrument BASIC .. ...... ...... ....
A. Manual Changes
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Manual Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Instruments Covered by This Manual .... ...... ...... .....
7-1
7-1
8-2
8-2
8-3
A-1
A-1
A-2
Contents-2
B. BASIC Commands Specic to HP 4352B
BASIC Commands Not Implemented . . . . . . . . . . . . . . . . . . . . . . B-1
BASIC Commands Specic to HP 4352B . . . . . . . . . . . . . . . . . . . . B-1
DATE.. ...... ...... ...... ...... ...... .... B-2
DATE$ ................................... B-3
EXECUTE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-4
READIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-6
SET TIME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-7
SET TIMEDATE ...... ...... ...... ...... ...... . B-8
TIME ...... ...... ...... ...... ...... ..... . B-9
TIME$ ................................... B-10
WRITEIO .. ...... ...... ...... ...... ...... .. B-11
C. The Keyboard
Character Entry Keys ............................ C-2
Cursor-Control and Display-Control Keys ................... C-2
Numeric Keypad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-3
Editing Keys ................................ C-3
Program Control Keys ............................ C-3
System Control Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-4
Softkeys and Softkey Control . . . . . . . . . . . . . . . . . . . . . . . . .
Softkey Control Keys ...........................
Softkeys .................................
Softkeys Accessed from
4
Shift
5-4
5
Key .... ...... ...... ...
F9
IBASIC Menu ..............................
Softkeys Accessed form
Using
4
5
Key in Edit Mode .. ...... ...... ..... .....
CTRL
4
5
Key...... ...... ..... .....
F10
C-4
C-4
C-4
C-5
C-5
C-6
C-6
D. Softkeys Used for HP Instrument BASIC Operation
4
5
System
NNNNNNNNNNNNNNNNNNNN
IBASIC
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
MEMORY PARTITION
4
Display
...................................
..................................
............................
5
...................................
Run Light Indications ...........................
Index
D-2
D-2
D-5
D-6
D-7
Contents-3
Figures
2-1. Conguration Example of the HP Instrument BASIC System ......... 2-2
6-1. Screen Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
6-2. RUN/CONT Trigger Signal ......................... 6-3
A-1. Serial Number Plate ............ ...... ..... ..... A-2
C-1. mini-DIN Keyboard ............................ C-1
D-1. System menu .... ...... ...... ...... ...... ... D-2
D-2. Display Menu .... ...... ...... ...... ...... ... D-6
D-3. Display Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D-7
Tables
A-1. Manual Changes by Serial Number ........ ...... ...... .
A-2. Manual Changes by Firmware Version . . . . . . . . . . . . . . . . . . . .
B-1. HP-IB Commands for EXECUTE .. ...... ..... ...... ...
A-1
A-1
B-4
Contents-4
1
Welcome to HP Instrument BASIC
This guide will help you learn how to eectively use HP Instrument BASIC (IBASIC) of the
HP 4352B VCO/PLL Signal Analyzer. It will help you to perform typical operations involving
program creation, editing, and execution. It will also show you how to save and recall
programs, and how to make the best use of the HP Instrument BASIC's front-panel and
keyboard interface.
If you are new to programming or to HP's dialect of BASIC, take the time to read this guide
and perform the exercises.For many users, this will provide all the information that is needed
to create and run programs.
How to Use This Manual
The tasks in each chapter, when performed in sequential order, demonstrate a typical use of HP
Instrument BASIC and cover the most common tasks. Read the overview and try the sample
tasks in each chapter to get you started. F
further into each chapter; otherwise, go to the next exercises and continue the session. Y
can refer back to the individual chapters for more information as necessary
or more background information, you can read
ou
. Here is a brief
guide to help you locate the necessary information in this manual and the other HP Instrument
BASIC manuals.
Chapter 2 introduces the analyzer's HP Instrument BASIC system and describes how to
connect and use a keyboard.
Chapter 3 and Chapter 4 show creating, getting, and saving programs to teach you front
panel and keyboard operation.
Chapter 5 introduces you to the editing environment.
Chapter 6 describes interfacing features for graphics, external connector to trigger
RUN/CONTinue of a program, and I/O port.
Chapter 7 introduces special features for auto loading a program, and the On Key Label
function (softkeys dened in a program). This chapter also describes techniques for speeding
up your programs.
Chapter 8 summarizes the unique features specied for the analyzer.
Appendix A contains the information required to adept this manual to earlier versions or
congurations of the analyzer than the current printing date of this manual.
Appendix B provides references for BASIC commands specic to the analyzer's HP
Instrument BASIC.
Appendix C provides a handy reference guide to the analyzer's HP Instrument BASIC's key
denitions for the mini-DIN keyboard.
Appendix D describes the softkeys that are used for the HP Instrument B
ASIC operations.
Welcome to HP Instrument BASIC 1-1
Note
You should become familiar with the operation of the analyzer before
attempting to control it using HP Instrument BASIC. See the following
documents that are better suited to this task.
Function Reference
HP-IB Programming Manual
Note
This manual,
to teach the HP Instrument BASIC programming language; see the following
document which is better suited to these tasks.
HP Instrument BASIC Users Handbook
The handbook consists of the following three parts:
HP Instrument BASIC Programming Techniques
HP Instrument BASIC Interfacing Techniques
HP Instrument BASIC Language Reference
IF you want to port HP 9000 Series 200/300 BASIC programs to HP
Instrument BASIC, see Chapter 10, \Keyword Guide to Porting," in the
Instrument BASIC Programming Techniques.
Using HP Instrument BASIC with the HP 4352B
, is not intended
HP
1-2 Welcome to HP Instrument BASIC
Introduction to the System
This chapter introduces the analyzer's HP Instrument BASIC (IBASIC) and describes how to
connect and use a keyboard. Read this chapter before using HP Instrument BASIC with the
analyzer for the rst time. The topics covered in this chapter are:
Overview of HP Instrument BASIC
Connecting the keyboard
Using HP Instrument BASIC for the rst time
Using the keyboard
Entering BASIC Statements from the front panel keys
Overview of HP Instrument BASIC
HP Instrument BASIC (IBASIC) can be used for a wide range of applications from simple
recording and playback of measurement sequences to remote control of other instruments
.
2
HP Instrument BASIC is a complete system controller residing inside your analyzer
communicates with your analyzer via HP-IB commands and can also communicate with other
instruments, computers, and peripherals over the HP-IB interface.
.It
Introduction to the System 2-1
Figure 2-1. Conguration Example of the HP Instrument B
The HP Instrument BASIC's programming interface includes an editor and a set of programming
utilities. The utilities allow you to perform disk I/O
your program.
The HP Instrument BASIC command set is similar to the command set of HP 9000 Series
200/300 BASIC. Therefore, HP Instrument BASIC programs can be run on any HP B
workstation with few if any changes.Porting information can be found in the
BASIC Programming Techniques
Connecting the Keyboard
of the
HP Instrument BASIC Users Handbook.
, renumber, secure, or delete all or part of
ASIC System
ASIC
HP Instrument
Note
When you use HP Instrument BASIC, connect the furnished keyboard to the mini-DIN
connector on the rear panel.
2-2 Introduction to the System
Turn OFF the analyzer before inserting or removing the keyboard connector
.
Using HP Instrument BASIC for the First Time
Allocating Screen Area for HP Instrument BASIC
Because all of the analyzer's screen is allocated for analyzer operation after power ON, you
must allocate screen area for HP Instrument BASIC when you want to use it. The analyzer
provides four display allocation types.
Let's try
1. Press the following key and softkeys:
NNNNNNNNNNNNNN
4
5
Display
MORE
2. Press the following softkey.
NNNNNNNNNNNNNNNNNNNNNNNNNNNNN
ALL BASIC
The screen is cleared and all of the screen area is allocated for HP Instrument BASIC.
3. Press the following softkey.
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
ALLOCAT'N ALL INSTR
The total screen area is reallocated as the analyzer display
.
4. Press the following softkey:
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
HALF INSTR HALF BASIC
The screen area is allocated so that the upper half of the screen is used for the analyzer
operation and the lower half is used for HP Instrument B
ASIC.
5. Press the following softkey:
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
BASIC STATUS
Three blank lines appear at the display line (lower area of the screen). This area is used by
HP Instrument BASIC to input commands and to display messages.
More information on the display allocations for the HP Instrument B
\
4
5
" in Appendix D.
Display
ASIC area is described in
Setting the Size of Memory Area for HP Instrument BASIC
The size of the memory areas for the RAM disk memory and the variable of HP Instrument
BASIC (excluding common variables) can be changed according to your application.
Caution
When the memory partition is recongured, the analyzer goes to the initial
settings. That is, the RAM disk memory is initialized and all the data saved in
the RAM disk memory is destroyed, and the program on the BASIC editor is
destroyed.
Let's try
1. Press the following key and softkey.
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
4
5
System
2.
Press the desired softkey and
MEMORY PARTITION
NNNNNNNNNNNNNN
DONE
.
Introduction to the System 2-3
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
3.
CHANGE YES
and
NNNNNNNN
NO
softkey labels are displayed.
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
Press
CHANGE YES
to change the memory partition.
NNNNNNNN
Press
NO
to cancel changing the memory partition.
Using the Keyboard
What can the Keyboard be Used for?
Furnished keyboard can be used as follows:
Performing calculations
Entering arguments to the active analyzer functions
Entering titles
Executing commands
Using softkeys
The following simple operations show you how to use these functions
.
Performing Calculations
You can perform calculations while in any display allocation type except for ALL
INSTRUMENT.
Let's try
1. Press the following key and softkeys:
4
Display
NNNNNNNNNNNNNN
5
MORE
NNNNNNNNNNNNNNNNNNNNNNNNNNNNN
ALL BASIC
The screen is cleared and a cursor appears at the bottom left of screen.
2. Type the following key from the keyboard:
3*2
4
5
Return
The characters you enter are displayed at the current cursor position. After pressing
the system responds with the following answer at the bottom of screen:
6
For more information, see \Numeric Computation" in the
Techniques
of the
HP Instrument BASIC Users Handbook.
HP Instrument BASIC Programming
Entering Arguments to the Active Analyzer Functions
4
Return
5
,
The numeric keys on the keyboard can be used to input the arguments for an active analyzer
function the same as using the front panel keys.
Let's try
1. Press the following key and softkeys:
4
Display
NNNNNNNNNNNNNN
5
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
MORE
ALLOCAT'N ALL INSTR
2. Then press the following key:
2-4 Introduction to the System
4
DC POWER
5
The current DC Power voltage is displayed on the screen and becomes the active analyzer
function.
3. Type a value to change the frequency from the keyboard. For example, type this:
4
The DC Power value is cleared and the value you typed is displayed.
4. Then press the following key on the keyboard:
4
5
Return
The DC Power value is changed to 100 mV.
5. Next, type the following value and key:
100E-3
After pressing
4
Return
5
4
Return
5
the active function value is changed to 100 mV.You can use the
character \E" and \e" in an exponential expression.
Pressing
pressing
4
BackSpace
4
Back Space
5
on the keyboard deletes the last entry. This performs the same function as
5
on the front panel.
Entering Titles
The character entry keys can be used to enter a title on the screen instead of using front panel
operation.
Let's Try
1. Press the following key and softkey:
4
5
Display
A cursor appears at the top left of the graticule
NNNNNNNNNNNNNN
MORE
NNNNNNNNNNNNNNNNN
TITLE
.
2. Type in characters using the keyboard, the characters you type appear at the top of the
graticule.
3. Press the following key to terminate entry:
4
5
Return
You can enter standard uppercase and lowercase letters for the title, using the
4
Shift
5
key to
access the alternate case as usual. For more information on the character entry keys, see
\Character Entry Keys" in Appendix C.
Executing Commands
You can type in and execute commands from the keyboard at all times except when:
The display allocation is ALL INSTRUMENT.
A command is being executed.
The analyzer is in the EDIT mode.
At all other times, you can type in commands and press
4
Return
5
to present them to the system
for execution. The system parses the command and takes the appropriate action.
Introduction to the System 2-5
Let's Try
1. Press the following key and softkey:
4
Display
NNNNNNNNNNNNNN
5
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
MORE
HALF INSTR HALF BASIC
2. To check the current mass storage, type the following command:
SYSTEM$("MSI")
4
Return
5
3. The system returns:
:,4
Using Softkeys
Pressing
4f15
through
4f85
on the keyboard performs the same function as pressing a softkey on
the front panel.
Entering BASIC Statements from the Front P
anel Keys
The analyzer's HP Instrument BASIC allows you to enter and execute statements from the
front panel keys (if the external mini-DIN keyboard is not connected).
Press the following key and softkeys from the front panel:
4
System
NNNNNNNNNNNNNNNNNNNN
5
IBASIC
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
MORE [1/3]
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
MORE [2/3]
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
COMMAND ENTRY
The Command Entry menu is displayed on the softkey menu area, and the active entry area
displays the letters, the digits 0 through 9, and some special characters including mathematical
,
symbols. Three sets of letters can be scrolled using the step keys
statement, press the step keys for the desired letter set, rotate the knob until the arrow \
points at the rst letter, then press
is entered, then press
NNNNNNNNNNNNNN
DONE
to execute the statement.
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
SELECT LETTER
. Repeat this until the complete statement
4
5
and
4
5
*
.To enter a
+
"
"
2-6 Introduction to the System
3
Writing and Running Programs
This chapter describes how to write, execute (run), and list programs. The example program in
this chapter also describes how to control the analyzer from an HP Instrument BASIC program.
Topics covered in this chapter are:
Getting into/out of the EDIT mode
Writing programs
Running (Executing) programs
Listing programs
Getting into/out of the EDIT Mode
When you write a program, you must be in the EDIT mode
.For more information about the
EDIT mode, see Chapter 5.
Getting into the EDIT Mode
Press the following key and softkeys from the front panel:
4
System
NNNNNNNNNNNNNNNNNNNN
5
IBASIC
NNNNNNNNNNNNNN
Edit
The system enters the EDIT mode.You can also get into the EDIT mode from the keyboard.
Type and press as follows:
EDIT
and press
4
Return
5
Getting out of the EDIT Mode
Press the following softkey from the front panel:
NNNNNNNNNNNNNNNNNNNNNNNNNN
END EDIT
NNNNNNNNNNNNNNNNNNNNNNNNNN
The system exits the EDIT mode.If
4
System
NNNNNNNNNNNNNNNNNNNN
5
IBASIC
from the front panel,
END EDIT
NNNNNNNNNNNNNNNNNNNNNNNNNN
END EDIT
does not appear on the softkey menu, press
will appear at the bottom of the menu.
You can also get out of the EDIT mode from the keyboard as follows:
Press
4
5-4
5-4
5,4
5
,or
4
Shift
Alt
F4
ESC
Home
5
Writing and Running Programs 3-1
Writing Programs
Controlling the Analyzer
HP Instrument BASIC can control the analyzer (itself) through the \internal" HP-IB bus. This
means that an analyzer with HP Instrument BASIC includes both a controller and an analyzer
in the same instrument. They are connected through an internal HP-IB bus.
Note
The select code of the internal HP-IB interface is 8, and the HP-IB address of
the analyzer can be any number from 0 to 30. In this manual, we use \800" for
the device selector of the analyzer.
For more information on HP-IB addresses and device selectors, see \Device
Selectors" in the
Instrument BASIC Users Handbook
HP Instrument BASIC Interfacing Techniques
and \Available I/O Interfaces and Select
of the
HP
Codes" in Chapter 8.
Let's Try
The following example program sets the DC Power voltage to 4 V.
1. Turn the analyzer ON.
2. Press the following key and softkeys from the front panel:
4
System
NNNNNNNNNNNNNNNNNNNN
5
IBASIC
NNNNNNNNNNNNNN
Edit
The system enters the EDIT mode. The cursor appears at line number 10, which is the
default line number of the rst program line, as follows:
d a
10 _
3. Press the following softkey:
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
ASSIGN @Hp4352
The commands are automatically entered at the current cursor position like this:
d a
10 ASSIGN @Hp4352 TO 800_
4. Press the following key:
4
5
2
1
The system reads the entire line.
d a
10 ASSIGN @Hp4352 TO 800
20 _
3-2 Writing and Running Programs
5. Press the following softkey:
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
OUTPUT @Hp4352
The following characters are displayed on the screen:
d a
10 ASSIGN @Hp4352 TO 800
20 OUTPUT @Hp4352;""
Note
\;" preceding the HP-IB command is automatically added, when you write the
program by pressing keys. \;" is a separator to send more than one command in
the same message.
6. Press the following key to sets the DC Power Voltage to 4 V.
4
DC POWER
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
5
POWER VOLTAGE
NNNNN
4
The program code is automatically generated:
d a
10 ASSIGN @Hp4352 TO 800
20 OUTPUT @Hp4352;";VPOW4"
Then enter
7. To terminate the program, type END and presss
4
5
.
2
1
4
5
Return
key.
d a
10 ASSIGN @Hp4352 TO 800
20 OUTPUT @Hp4352;";VPOW4"
30 END
70 _
8. Press the following softkey to exit the EDIT mode:
4
System
NNNNNNNNNNNNNNNNNNNN
5
IBASIC
NNNNNNNNNNNNNNNNNNNNNNNNNN
END EDIT
The screen returns to the analyzer display.
Writing and Running Programs 3-3
Loading...
+ 49 hidden pages