
How
to
Use
the
Status
Registers
in
a
Program
Y
ou
can
use
the
status
registers
to
determine
the
specic
analyzer
status
in
the
program.
T
o
determine
the
contents
of
the
status
register
,
the
following
methods
are
used:
Read
an
event
register
directly
.
Use
the
Service
Request
(SRQ).
Reading
an
Event
Register
Directly
Y
ou
can
read
the
contents
of
the
event
register
directly
to
determine
the
specic
analyzer
condition.
Use
this
method
if
you
do
not
need
to
know
the
timing
of
the
event
register
changes
.
The
following
procedure
reads
the
register
directly:
1.
Query
the
event
register
contents
.
2.
Retrieve
a
return
value
.
3.
Check
the
bit
condition
using
the
B
ASIC
BIT
function.
OUTPUT
@E5100;"ESB?"
Queries
instrument
event
status
register
contents
.
ENTER
@E5100;Esb
R
etrieve
return
value
.
IF
BIT(Esb,4)
THEN
DISP
"LIMIT
TEST
FAILED
AT
Ch
1."
END
IF
If
bit
4
of
the
instrument
event
status
register
is
set
to
1,
the
limit
test
failed
on
channel
1.
Module
4-1.
Reading
an
Event
Register
Related
GPIB
Commands
.
The
following
query
commands
can
be
used
to
read
the
contents
of
an
event
register
directly
.
*STB?
Returns
Status
Byte
Register
contents
.
*ESR?
Returns
Event
Status
Register
contents
.
ESB?
Returns
Instrument
Event
Status
Register
contents
.
OSR?
Returns
Operation
Status
Register
contents
.
Using
Status
Reporting
Function
5-9
Содержание 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: ......