T
o
Report
Command
Error
Occurrence
d
a
c
b
10
!
20
!
Figure
3-5.
To
Report
Command
Error
Occurrence
30
!
40
ASSIGN
@Hp4396
TO
717
!
When
iBASIC
is
used,
change
"717"
to
"800"
50
!
60
DIM
Err$[30]
70
OUTPUT
@Hp4396;"CLES"
80
OUTPUT
@Hp4396;"*SRE
32
;*ESE
32"
90
ON
INTR
7
GOSUB
Err_report
!
\
When
iBASIC
is
used,
100
ENABLE
INTR
7;2
!
/
change
"7"
to
"8"
110
!
120
!
OUTPUT
statement
to
send
GPIB
command
130
!
140
!
150
!
160
GOTO
Prog_end
170
Err_report:
!
180
OUTPUT
@Hp4396;"OUTPERRO?"
190
ENTER
@Hp4396;Err,Err$
200
"COMMAND
ERROR
DETECTED"
210
Err,Err$
220
!
230
A=SPOLL(@Hp4396)
240
OUTPUT
@Hp4396;"*ESR?"
250
ENTER
@Hp4396;Estat
260
ENABLE
INTR
7
!
When
iBASIC
is
used,
change
"7"
to
"8"
270
RETURN
280
Prog_end:
!
290
END
Figure
3-5.
Sample
Program
:
T
o
Report
Command
Error
Occurrence
F
or
details
on
SRQ
interrupt,
see
the
\T
o
W
ait
for
Sweep
End"
example
.
Enable
Error
Bit
70
OUTPUT
@Hp4396;"CLES"
80
OUTPUT
@Hp4396;"*SRE
32
;*ESE
32"
Line
70
clears
all
bits
of
the
Status
Registers
and
Enable
Registers
.
In
line
80,
the
command
*SRE
32
sets
the
Service
Request
Enable
Register
to
00100000
(this
enables
bit
5
of
the
Status
Byte
Register).
The
command
*ESE
32
sets
the
Standard
Event
Status
Enable
Register
to
00100000
(this
enables
bit
5
of
the
Standard
Event
Status
Register
(see
Figure
3-6).
Synchronizing
the
Analyzer
from
Remote
3-5
Содержание Agilent 4396B
Страница 12: ...Tables A 1 Manual Changes by Serial Number A 1 A 2 Manual Changes by Firmware Version A 1 Contents 6 ...
Страница 32: ......
Страница 52: ......
Страница 68: ......
Страница 72: ......
Страница 92: ......
Страница 96: ......
Страница 99: ...Agilent 4396B Network Spectrum Impedance Analyzer Using Instrument BASIC with the 4396B Printed in JAPAN ...
Страница 100: ...c Copyright 1997 2000 2001 2003 Agilent Technologies Japan Ltd ...
Страница 116: ......
Страница 126: ......
Страница 130: ......
Страница 138: ......
Страница 148: ......
Страница 163: ...C The Keyboard Mini DIN keyboard is following key layout Figure C 1 mini DIN Keyboard The Keyboard C 1 ...
Страница 176: ......