
Programming
Examples
Programming
Examples
A
sample
program
is
supplied
with
your
receiver
,
on
the
HP
8530A
Software
T
oolkit
Disc.
The
name
of
the
program
is:
8530_PROGX
The
program
contains
many
example
routines
,
which
show
how
to
perform
various
programming
tasks
.
The
text
on
the
following
pages
describe
each
of
these
examples
.
The
program
requires
B
ASIC
5.0
or
higher
with
the
following
binaries:
IO
,
MA
T
,
TRANS,
and
COMPLEX.
The
disc
also
contains
three
measurement
data
les
that
are
accessed
by
some
of
the
programming
example
routines
.
ANG360
ANG180_SUM
ANG180_DEL
These
are
data
les
containing
angle
domain
measurement
data.
Example
1:
Input
Syntax
F
amiliarization
This
example
can
help
you
become
familiar
with
the
receiver
HP-IB
instructions
.
The
rst
part
of
this
example
sends
commands
(entered
by
the
user)
to
the
receiver
.
The
second
part
sends
query
or
output
commands
to
the
receiver
and
prints
the
response
.
When
entering
HP-IB
commands
it
is
not
necessary
to
use
quotation
marks
or
include
the
nal
`;'.
Syntax
errors
are
detected
and
cleared.
Refer
to
the
\Example
Program
Listings"
near
the
end
of
this
chapter
for
the
Example
1
program
that
is
executable
using
HP
B
ASIC.
!
Start:
!
INPUT
"Type
8530
command.";
String$
OUTPUT
Rec;
String$
GOTO
Start
The
Input
statement
displays
a
message
,
then
waits
for
an
input
(type
the
string
and
then
press
computer
Return
or
ENTER).
Using
a
simple
program
like
this
one
,
you
can
input
commands
one
at
a
time
and
observe
the
receiver
response
.
At
rst,
try
instructions
such
as:
"STAR
10
GHz"
Refer
to
the
List
Programming
Codes
in
the
HP
8530A
K
eyword
Dictionary
to
see
the
syntax
requirements
for
each
programmable
function.
Enter
a
sequence
of
instructions
by
separating
each
instruction
with
a
semicolon
(;),
as
follows:
"STAR
2
GHz;
STOP
10
GHz;
CHAN2;
LINP"
The
receiver
instruction
DEBUON
causes
all
receiver
instructions
to
be
displayed
in
the
Title
area
of
the
receiver
display
.
The
last
30
characters
in
the
instruction
queue
are
displayed,
with
the
most
recently
received
instruction
at
the
left
of
the
area,
pushing
instructions
higher
on
the
queue
o
of
the
area
to
the
right.
This
means
that
the
currently
executing
command
may
not
be
visible
if
the
queue
is
over
30
characters
in
length.
Use
the
receiver
instruction
DEBUOFF
to
disable
display
of
the
command
queue
.
If
the
receiver
does
not
recognize
a
mnemonic
,
or
cannot
execute
it
in
the
correct
sequence
,
then
HP-IB
activity
stops
and
the
instruction
in
error
is
shown
in
the
Title
area
of
the
receiver
display
with
an
upward
pointing
arrow
at
the
location
of
the
error
.
Y
ou
must
press
4
LOCAL
5 ,
then
continue
operation,
or
issue
an
HP-IB
DCL
or
SDC
(the
example
program
does
this
for
you).
HP-IB
Programming
18-17
Содержание 8530A
Страница 9: ......
Страница 31: ......
Страница 34: ...General Information Figure 1 2 Antenna Measurement Setup Using an HP 85310A GeneralInformation 1 3 ...
Страница 51: ......
Страница 65: ......
Страница 81: ......
Страница 83: ......
Страница 84: ...5 Menus Block Chapter Contents Calibration Domain Display Markers MenusBlock 5 1 ...
Страница 85: ...5 2 Menus Block ...
Страница 90: ...Calibration Requirements Figure 5 1 Cal and Cal Type Menus MenusBlock 5 7 ...
Страница 93: ...Antenna Calibration 5 10 MenusBlock ...
Страница 167: ......
Страница 195: ......
Страница 201: ......
Страница 209: ......
Страница 249: ......
Страница 281: ......
Страница 411: ......
Страница 419: ...Glossary Glossary 8 ...
Страница 439: ......