
Program
Listing
Note
This
program
le
is
stored
under
the
name
of
SRCHTRFL.B
AS
on
the
attached
sample
program
disk
(Agilent
P
art
Number
E5100-61002).
This
program
is
designed
for
use
with
the
HP
Instrument
B
ASIC.
The
program
listing
shown
below
does
not
include
comments
given
before
line
390
in
the
sample
program.
Note
also
that
the
comment
shown
to
the
right
of
each
program
line
is
not
included
in
the
sample
program.
390
ASSIGN
@E5100
TO
800
!
Specifies
E5100A/B
address.
400
OUTPUT
@E5100;"PRES"
!
Initializes
the
settings.
410
OUTPUT
@E5100;"ANAMODE
ZTRAN"
!
Selects
the
impedance
(transfer)
mode.
420
OUTPUT
@E5100;";DISAALLB"
!
Selects
the
entire
screen
for
BASIC.
430
OUTPUT
@E5100;"PICIRC
ON"
!
Selects
the
fixture
mode.
440
DIM
Ma$[16],Un$[2]
!
Specifies
the
character
string
!
variable
size.
450
!
460
GOSUB
Value_set
!
Calls
the
routine
to
specify
search
!
parameters.
470
GOSUB
Pi_cal
!
Calls
the
fixture
correction
routine.
480
!
490
OUTPUT
@E5100;"ANAOCH1;ANARFULL;ANAODATA"
!
Specifies
the
target
for
!
waveform
analysis.
500
!
(Channel
1,
entire
display
range,
data
trace)
510
Meas:
!
Starts
the
measurement
routine.
520
INPUT
"Connect
the
DEVICE
with
CL
board",B$
!
Suggests
that
the
CL
board
!
be
connected
to
the
sample.
530
OUTPUT
@E5100;"SRCHTRFL?
";Search_mode,W_t
!
Measures
the
FL.
540
ENTER
@E5100;Fl_trg1
!
Obtains
measurement
results
from
!
the
E5100A/B.
550
Ma$="FL
at
target
CL"
!
Assigns
a
value
to
the
character
string.
560
Un$="Hz"
!
Assigns
a
value
to
the
character
string.
570
USING
"16A,9D,2A";Ma$,Fl_trg1,Un$
!
Displays
the
measurement
results
!
on
the
screen.
580
GOTO
Meas
!
Returns
to
the
top
of
the
measurement
!
routine
to
restart
measurement.
590
STOP
600
!
610
Value_set:
!
Starts
the
routine
to
specify
search
!
parameters.
620
INPUT
"Nominal
frequency?[MHz]",Nf1
!
Inputs
the
nominal
FL
of
the
sample
in
[MHz].
630
Nf=Nf1*1.E+6
!
Converts
the
nominal
FL
into
that
in
[Hz].
640
OUTPUT
@E5100;"NOMF";Nf
!
Specifies
the
nominal
FL.
650
INPUT
"Search
range?[ppm]",Sr1
!
Inputs
in
[ppm]
the
frequency
range
!
to
be
searched.
660
Sr=Sr1*Nf1
!
Converts
the
range
into
that
in
[Hz].
670
OUTPUT
@E5100;"SRCHR
";Sr
!
Specifies
the
frequency
range.
680
INPUT
"Nominal
CI?[ohm]",Nci
!
Inputs
the
nominal
CI
in
[].
690
OUTPUT
@E5100;"CIVAL";Nci
!
Specifies
the
nominal
CI.
700
INPUT
"Power?[uW]",Pow1
!
Inputs
the
test
signal
power
in
[ W].
710
Pow=Pow1*1.E-6
!
Converts
the
power
into
that
in
[W].
720
OUTPUT
@E5100;"POWU
WATT"
!
Specifies
W
as
the
unit
for
signal
power.
730
OUTPUT
@E5100;"POWE";Pow
!
Specifies
the
signal
power.
740
INPUT
"Actual
capacitance?[pF]",Act1
!
Inputs
the
actually
connected
CL
in
[pF].
750
Act=Act1*1.E-12
!
Converts
the
actual
CL
into
that
in
[F].
760
OUTPUT
@E5100;"CLACT";Act
!
Specifies
the
actual
CL.
770
INPUT
"Target
capacitance?[pF]",Trg1
!
Inputs
the
target
CL
in
[pF].
780
Trg=Trg1*1.E-12
!
Converts
the
target
CL
into
that
in
[F].
790
OUTPUT
@E5100;"CLTGT";Trg
!
Specifies
the
target
CL.
800
!
810
Search_mode=3
!
Specifies
the
default
search
mode.
K
-4
Measuring
Load
Resonance
Frequency
(FL)
Using
a
CL
Board
with
Fixed
C
Summary of Contents for E5100A
Page 1: ...Agilent E5100A B Network Analyzer Programming Manual ...
Page 2: ......
Page 5: ...c Copyright 1995 1996 1997 1998 2000 2001 Agilent Technologies Japan Ltd ...
Page 8: ......
Page 36: ......
Page 46: ......
Page 48: ...Figure 3 1 Simpli ed Data Processing Flow 1 3 2 Data Processing and T ransfer ...
Page 58: ......
Page 76: ......
Page 112: ......
Page 232: ......
Page 246: ......
Page 250: ......
Page 299: ...110 END Waveform Analysis Commands D 49 ...
Page 302: ......
Page 322: ......
Page 350: ......
Page 352: ......
Page 362: ......
Page 368: ......
Page 372: ......