![Agilent Technologies Agilent 4396B Gpib Programming Manual Download Page 118](http://html.mh-extra.com/html/agilent-technologies/agilent-4396b/agilent-4396b_gpib-programming-manual_2867995118.webp)
W
riting
Programs
Controlling
the
Analyzer
Instrument
B
ASIC
can
control
the
analyzer
(itself)
through
the
\internal"
GPIB
bus
.
This
means
that
an
analyzer
with
Instrument
B
ASIC
includes
both
a
controller
and
an
analyzer
in
the
same
instrument.
They
are
connected
through
an
internal
GPIB
bus
.
Note
The
select
code
of
the
internal
GPIB
interface
is
8,
and
the
GPIB
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
.
F
or
more
information
on
GPIB
addresses
and
device
selectors
,
see
\Device
Selectors"
in
the
Instrument
B
ASIC
Interfacing
T
echniques
of
the
Instrument
B
ASIC
Users
Handbook
and
\A
vailable
I/O
Interfaces
and
Select
Codes"
in
Chapter
9.
Y
ou
can
write
the
program
by
using
the
keyboard
or
by
pressing
keys
and
softkeys
from
the
front
panel
procedure
without
using
the
external
keyboard.
Using
the
keyboard
is
very
useful
when
you
write
a
larger
and
more
complex
program,
or
type
comments
in
a
program.
F
or
detailed
information
on
how
to
use
the
keyboard,
see
Appendix
C.
Let's
Try
The
following
example
program
selects
the
following
measurement
settings:
A
ctive
Channel
Block
Channel
1
(default)
Measurement
Block
Network
Analyzer
A/R
LOG
MA
G
format
(default)
Display
scale
to
A
UTO
Sweep
Block
Center
frequency:
70
MHz
Span
frequency:
100
kHz
1.
Turn
the
analyzer
ON.
2.
Press
the
following
key
and
softkeys
to
display
the
network
analyzer
mode
softkeys:
4
Meas
5
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
ANALYZER
TYPE
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NETWORK
ANALYZER
NNNNNNNNNNNNNNNNNNNN
RETURN
3.
Press
the
following
key
and
softkeys
from
the
front
panel:
4
System
5
NNNNNNNNNNNNNNNNNNNN
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
_
4.
Press
the
following
softkey:
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
ASSIGN
@Hp4396
3-2
Writing
and
Running
Programs