
8. Application Programming
T
oRead Data Using the Mark
er Searc
hF
unction . . . . . . . . . . . . . 8-2
Searc
hing Maximum V
alue . . . . . . . . . . . ...........8-2
Reading Data .............. . . . . . . . . . . . . . 8-3
Mark
er Readout .... . . . . . . . . . . . . . .........8-4
T
oP
erform Limit Test . . . . ............ . . . . . . . . . 8-5
T
oSet List Sw
eep ............ . . . . . . . ........8-8
T
oPrin
tAnalyzer Displa
y.. . . . . . . . ..............8-10
Prin
ter Preparation . . . . .................. . . . 8-10
Execute Prin
t............. . . . . . . . .......8-10
T
oObserv
ePrin
ting . . . . . . . . .................8-10
Programs for the Netw
ork Analyzer Mo de .............. . .8-11
T
oP
erform 1P
ass 2P
ort Calibration ..... . . . . . .......8-11
T
oAnalyze aFilter .. . . . . . ..................8-12
T
o Analyze aCrystal Filter ................. . . . .8-15
T
oMeasure Gain Compression ........... . . . ......8-21
Programs for the Spectrum Analyzer Mo de .... . ...........8-25
T
oObtain Total Harmonic Distortion (THD) ..............8-25
T
oObtain an In
tegral of aP
o
w
er .... . . . . . ..........8-26
T
o Obtain Adjacent Channel P
o
w
er ............. . . . . . 8-29
T
oObtain Occupied P
o
wer Bandwidth . ...............8-31
T
oCalculate an S/N Ratio ........ . . . ...........8-34
Programs for the Impedance Analyzer Mo de ............. . .8-37
T
oP
erform Calibration . ......................8-37
T
oMeasure Capacitance and the factor D.... . ..........8-38
T
oMeasure aV
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
tDirectory ..............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 Response F
rom an Instrumen
ton 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. Introducing HP Instrumen
t BASIC System
Overview of HP Instrumen
tBASIC . . . . . . . . . . . . . . . . . . . 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