
T
able
5-4.
Status
Bit
Denitions
of
the
Operational
Status
Register
(OSR)
Bit
Name
Description
14
Program
running
An
HP
Instrument
B
ASIC
program
is
running.
Each
status
register
has
a
register
mask
which
enables
generating
Service
ReQuest
(SR
Q)
with
condition
of
a
status
bit.
F
or
instance
,
to
generate
an
SRQ
when
the
E5100A/B
completes
the
specied
number
of
sweep
,
enable
ESNB
bit
1
which
is
the
mask
register
for
ESB
0
(\SING,
NUMG,
or
Cal
Std.
Complete")
which
shows
sweep
completion
and
SRE
bit
2.
This
makes
a
path
from
ESB
bit
0
to
an
SRQ.
This
example
is
listed
as
a
program
listing:
d
a
c
b
10
ASSIGN
@E5100
TO
717
20
!
30
OUTPUT
@E5100;"CLES"
!
Clears
status
registers
40
OUTPUT
@E5100;"ESNB
1"
!
Enables
mask
register
of
"SING.
NUMG.
or
50
!
!
Cal
Std.
Complete"
of
ESB
60
OUTPUT
@E5100;"*SRE
4"
!
Enables
mask
register
of
"Event
Status
70
!
!
Register
B"
of
STB
80
!
90
ON
INTR
7
GOTO
End
!
Declare
SRQ
interrupt
100
ENABLE
INTR
7;2
100
OUTPUT
@E5100;"SING"
!
Execute
single
sweep
110
GOTO
110
!
Endless
loop
120
!
130
End:
!
Exit
from
loop
when
sweep
is
completed
140
END
Figure
5-6.
Example
of
Generating
a
Service
ReQuest
(SRQ)
OSPT
,
OSNT
OSPT
(Operational
Status
P
ositive
Transition
Filter)
Sets
the
positive
transition
lter
.
Setting
a
bit
in
OSPT
will
cause
a
0
to
1
transition
in
the
corresponding
bit
of
the
associated
operational
status
register
(osr)
to
cause
a
1
to
be
written
in
the
associated
bit
of
corresponding
operational
status
event
register
(oser).
Because
only
bit
17
of
the
E5100A/B 's
OSR
is
used
to
show
program
status
,
when
bit
17
of
OSPT
is
set
to
1,
starting
a
program
causes
a
1
to
be
written
in
bit
17
of
OSER.
(And
then
a
1
is
written
in
bit
7
of
STB
.)
Using
Status
Reporting
Function
5-7
Содержание E5100A
Страница 1: ...Agilent E5100A B Network Analyzer Programming Manual ...
Страница 2: ......
Страница 5: ...c Copyright 1995 1996 1997 1998 2000 2001 Agilent Technologies Japan Ltd ...
Страница 8: ......
Страница 36: ......
Страница 46: ......
Страница 48: ...Figure 3 1 Simpli ed Data Processing Flow 1 3 2 Data Processing and T ransfer ...
Страница 58: ......
Страница 76: ......
Страница 105: ...610 RETURN 620 630 Ending ENDING PROGRAM 640 ASSIGN Dt TO 650 660 END Application Sample Programs 7 7 ...
Страница 112: ......
Страница 232: ......
Страница 246: ......
Страница 250: ......
Страница 277: ...110 PRINT Pole left Pole1 dB Fp1 Hz 120 PRINT Pole right Pole2 dB Fp2 Hz 130 END Waveform Analysis Commands D 27 ...
Страница 299: ...110 END Waveform Analysis Commands D 49 ...
Страница 302: ......
Страница 322: ......
Страница 350: ......
Страница 352: ......
Страница 362: ......
Страница 368: ......
Страница 372: ......