Status Byte Definitions - Stanford Research Systems SR860 Operation Manual

Dsp lock-in amplifier
Table of Contents

Advertisement

Chapter 4

Status Byte Definitions

The SR860 reports on its status by means of four status bytes: the Serial Poll Status byte,
the Standard Event Status byte, the LIA Status byte, and the Error Status byte.
The status bits are set to 1 when the event or state described in the tables below has
occurred or is present.
Serial Poll Status Byte
bit name
0
1
2
ERR
3
LIA
4
MAV
5
ESB
6
SRQ
7
The ERR, LIA, and ESB bits are set whenever any bit in BOTH their respective status
bytes AND enable registers is set. Use the *
set enable register bits. The ERR, LIA and ESB bits are not cleared until ALL enabled
status bits in the Error, LIA and Standard Event status bytes are cleared (by reading the
status bytes, using *
Using *STB? command to read the Serial Poll Status Byte
A bit in the Serial Poll status byte is NOT cleared by reading the status byte using
The bit stays set as long as the status condition exists. This is true even for SRQ. SRQ
will be set whenever the same bit in the serial poll status byte AND enable register is set.
This is independent of whether a serial poll has occurred to clear the service request.
Using GPIB Serial Poll
Except for SRQ, a bit in the Serial Poll status byte is NOT cleared by GPIB serial polling
the status byte. When reading the status byte using a GPIB serial poll, the SRQ bit signals
that the SR860 is requesting service. The SRQ bit will be set (1) the first time the SR860
is polled following a service request. The GPIB serial poll automatically clears the
service request SRQ. Subsequent GPIB serial polls will return SRQ cleared (0) until
another service request occurs.
Polling the status byte and reading it with
When polled, SRQ indicates a service request has occurred. When read, SRQ indicates
that an enabled status bit is set.
GPIB Service Requests (SRQ)
A GPIB service request (SRQ) will be generated whenever a bit in both the Serial Poll
Status byte AND Serial Poll Enable register is set. Use
Enable register. A service request is only generated when an enabled Serial Poll Status bit
becomes set (changes from 0 to 1). An enabled status bit which becomes set and remains
usage
unused
unused
An enabled bit in the error status byte has been set.
An enabled bit in the LIA status byte has been set.
The interface output buffer is non-empty.
An enabled bit in the standard status byte has been set.
SRQ (service request) has occurred.
unused
or by clearing the enable register bits).
CLS
*STB?
Programming
, *
SRE
ESE
,
ERRE
and
can return different values for SRQ.
to set bits in the Serial Poll
*SRE
SR860 DSP Lock-in Amplifier
151
LIAE
commands to
.
*STB?

Advertisement

Table of Contents
loading

Table of Contents