
Programming
Examples
Example
17:
Read
and
Output
Status
Bytes
This
program
example
displays
the
decimal
value
of
the
primary
and
extended
status
bytes
.
The
user
is
prompted
to
\A
djust"
the
receiver
and
then
the
status
is
read
and
displayed.
Try
pressing
a
front
panel
key
or
taking
a
single
sweep
.
The
tables
below
show
bit
assignments
of
the
receiver
Primary
and
Secondary
status
bytes
.
These
bits
are
set
according
to
the
current
instrument
state
of
the
receiver
system.
Important
receiver
instructions
relating
to
the
status
word
are:
OUTPSTAT;
Prepare
the
receiver
to
output
the
status
word
as
two
ASCII
numbers
,
0
to
255.
Completion
clears
the
status
word
to
0,0.
CLES;
Clear
status
bytes
to
0,0;
clear
SRQ.
SRQM
a,b;
Send
two
integer
ASCII
values
,
0
to
255
to
set
the
Service
Request
Mask.
P
ower
On,
TEST
,
and
PRESET
clear
the
Service
Request
Mask
to
0,0.
Read
Status
Bytes
Both
status
bytes
are
read
using
a
sequence
such
as:
OUTPUT
Rec;"OUTPSTAT;"
ENTER
Rec_data;
Primary,Secondary
Where
Primary
and
Secondary
are
variables
to
receive
the
value
of
each
byte
.
Y
ou
may
read
the
status
bytes
in
separate
ENTER
operations
.
After
the
P
ower
Up
sequence
is
complete
,
bit
2
of
the
Extended
status
byte
is
set,
making
the
value
of
OUTPST
A
T
0,4.
PRIMARY
ST
A
TUS
B
YTE
(#1)
BIT
#
7
6
5
4
3
2
1
0
Decimal
V
alue
128
64
32
16
8
4
2
1
Function
Reason
in
Extended
byte
RQS
(SRQ
issued)
Syntax
error
SING,
NUMB
,
CALF
,
complete
W
aiting
for
GET
after
reverse
device
TRIG
waiting
for
GET
F
ASC;
issued
ready
for
external
trigger
Data
entry
complete
CA
UTION
message
displayed
EXTENDED
ST
A
TUS
B
YTE
(#2)
BIT
#
7
6
5
4
3
2
1
0
Decimal
V
alue
128
64
32
16
8
4
2
1
Function
Not
used
Not
used
Not
used
Not
used
Not
used
P
ower
ON
sequence
complete
Key
pressed
Not
used
HP-IB
Programming
18-29
Содержание 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: ......