4263B
Other
F
eatures
T
oT
est the
4263B
The
following command
runs
the
4263B
's
internal
self
test:
*TST?
F
or
example
,
:
OUTPUT
717;"*TST?"
ENTER
717;A
IF
A<>0
THEN
PRINT
"Self
Test:Error"
:
T
o
Report
the
Instrument's
Status
The
following
commands
report
the
instrument's
status:
*CLS
*ESE
*ESR?
*SRE
*STB?
:STAT:OPER?
:STAT:OPER:COND?
:STAT:OPER:ENAB
:STAT:QUES?
:STAT:QUES:COND?
:STAT:QUES:ENAB
:STAT:PRES
HP
BASIC
SPOLL
command
F
or
example
,
to
always
generate
a service
request when
an
error
enters
the
error
queue
,
use
as
follows:
OUTPUT
717;"*ESE
52;
*SRE
32"
F
or
example
,
to
detect
the
measurement completion:
OUTPUT
717;":STAT:OPER:ENAB 16"
Enable Measuring
bit of
Operation
Status
R
egister
OUTPUT
717;"*SRE
128"
Enable
Operation
Status
Register
Summary bit
REPEAT
W
ait
until
the
Operation
Status
R
egister
Summary
A=SPOLL(717)
bit is set
UNTIL BIT(A,7)
For example
, to generate an interrupt when
an error occurs in the 4263B
:
DIM Err$[50]
!
:
OUTPUT 717;"*CLS"
Clears status byte register
OUTPUT 717;"*ESE 48"
Sets Command Error Bit and Execution Error Bit
OUTPUT 717;"*SRE 32"
Sets Standard Event Status register Summary Bit
!
ON INTR 7 GOSUB Err_report
Tells where to branch when interrupted
ENABLE INTR 7;2
Enable an interrupt from GPIB interface
4-26 Remote Operation (To Control from a Computer)