8. Application
Programming
T
o
Read
Data
Using
the
Mark
er
Searc
h
F
unction
. .
. .
. .
. .
. .
. .
. 8-2
Searc
hing
Maxim
um V
alue .
. .
. .
. .
. .
. .
.
.
.
.
.
.
.
.
.
.
.
8-2
Reading Data
. .
.
.
.
.
.
.
.
.
.
.
.
. .
. .
. .
. .
. .
. .
. .
8-3
Mark
er
Readout
.
.
.
. .
. .
. .
. .
. .
. .
. .
.
.
.
.
.
.
.
.
.
8-4
T
oP
erform Limit
Test
. .
. .
.
.
.
.
.
.
.
.
.
.
.
. .
. .
. .
. .
. .
8-5
T
o
Set
List
Sw
eep
.
.
.
.
.
.
.
.
.
.
.
. .
. .
. .
. .
.
.
.
.
.
.
.
.
8-8
T
o
Prin
t
Analyzer
Displa
y
.
. .
. .
. .
. .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8-10
Prin
ter Preparation
. .
. .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. .
. .
8-10
Execute
Prin
t
.
.
.
.
.
.
.
.
.
.
.
.
. .
. .
. .
. .
.
.
.
.
.
.
.
8-10
T
o
Observ
e
Prin
ting
. .
. .
. .
. .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8-10
Programs
for the
Netw
ork
Analyzer
Mo
de
.
.
.
.
.
.
.
.
.
.
.
.
.
. .
. 8-11
T
o
P
erform
1
P
ass
2
P
ort
Calibration
.
.
.
.
. .
. .
. .
.
.
.
.
.
.
.
8-11
T
o
Analyze
a
Filter
.
. .
. .
. .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8-12
T
o Analyze
a
Crystal
Filter
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. .
. .
. 8-15
T
o
Measure
Gain
Compression
.
.
.
.
.
.
.
.
.
.
. .
. .
.
.
.
.
.
.
8-21
Programs
for
the
Sp
ectrum
Analyzer
Mo
de
.
.
.
. .
.
.
.
.
.
.
.
.
.
.
.
8-25
T
o
Obtain
Total
Harmonic
Distortion
(THD)
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8-25
T
o
Obtain
an
In
tegral
of
a
P
o
w
er
.
.
.
. .
. .
. .
.
.
.
.
.
.
.
.
.
.
8-26
T
o Obtain
Adjacent
Channel
P
o
w
er
.
.
.
.
.
.
.
.
.
.
.
.
. .
. .
. .
8-29
T
o
Obtain
Occupied
P
o
wer
Bandwidth .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8-31
T
o
Calculate
an
S/N
Ratio
.
.
.
.
.
.
.
. .
. .
.
.
.
.
.
.
.
.
.
.
.
8-34
Programs
for
the
Imp
edance
Analyzer
Mo
de
.
.
.
.
.
.
.
.
.
.
.
.
. .
. 8-37
T
o
P
erform
Calibration .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8-37
T
o
Measure
Capacitance
and
the
factor
D
.
.
.
. .
.
.
.
.
.
.
.
.
.
.
8-38
T
o
Measure
a
V
aractor
Dio
de
Using
DC
Bias
Sw
eep
(With
Option
010)
.
.
8-42
File
T
ransfer F
unction
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. .
.
8-46
File
T
ransfer
from
4395A
to
External
Con
troller
. .
.
.
.
.
.
.
.
.
.
.
8-47
File
T
ransfer
from
External
Con
troller
to
4395A
.
.
.
.
.
.
.
. .
. .
.
8-49
Displaying
List
of
Files
in
Curren
t
Directory
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8-52
Hin
ts
and
Notes on
Programming .
. .
. .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8-54
Increasing
y
our program
execution sp
eed .
. .
.
.
.
.
.
.
.
.
.
.
.
.
.
8-54
ANAOCH
Command
.
.
.
.
.
.
.
.
.
. .
. .
. .
.
.
.
.
.
.
.
.
.
.
.
8-54
Self-assigning
of
an
GPIB
Address
.
.
.
.
.
.
.
.
.
.
.
.
.
. .
. .
. 8-54
Key Strok
e Recording
. .
. .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. .
. 8-55
Solving
Problems
on
Y
our
Program .
. .
. .
. .
. .
. .
. .
.
.
.
.
.
8-55
If
There
Is
No
Resp
onse
F
rom
an
Instrumen
t
on the
GPIB
Bus
.
.
.
.
.
8-55
If the Disk Cannot Be Read
. . . . . .
. . . . . . . . . . . . . . 8-55
If
an GPIB Command Error Occurs .
. . . . . . . . . . . . . . . . 8-55
If a Query Error Occurs
. . . . . . . . . . .
. . . . . . . . . . . 8-55
9. Intro ducing HP Instrumen
t BASIC System
Overview of HP Instrumen
t
BASIC . . . . . . . . . . . . . . . . . . . 9-1
Controlling the Analyzer .
. . . . . . . . . . . . . . .
. . . . . . . . 9-2
Using HP Instrument BASIC for the First Time . . . . . . . . . . . . . 9-2
Allo cating Screen Area for HP Instrument BASIC . . . . . . . . . . . . 9-2
Entering BASIC Statements from the FrontPanel Keys . . . . . . . . . . 9-3
Getting into/out of the EDIT Mo de . . . . . . . . . . . . . . . . . . . 9-3
Getting into the EDIT Mo de . . . . . . . . . . . . . . . . . . . . . 9-3
Entering the EDIT Mo de from the Keyboard . . . . . . . . . . . . . . 9-3
Getting Out of the EDIT Mo de . . . . . . . . . . . . . . . . . . . . 9-3
Contents-4