Stanford Research Systems SR865A Operation Manual page 170

4 mhz dsp lock-in amplifier
Table of Contents

Advertisement

152
Programming
set will generate a single SRQ. If another service request from the same status bit is
desired, the requesting status bit must first be cleared. In the case of the ERR, LIA and
ESB bits, this means clearing the enabled bits in the ERR, LIA and ESB status bytes (by
reading them). Multiple enabled bits in these status bytes will generate a single SRQ.
Another SRQ (from ERR, LIA or ESB) can only be generated after clearing the ERR,
LIA or ESB bits in the Serial Poll status byte. To clear these bits, ALL enabled bits in the
ERR, LIA or ESB status bytes must be cleared.
The controller should respond to the SRQ by performing a serial poll to read the Serial
Poll status byte to determine the requesting status bit. Bit 6 (SRQ) will be reset by the
serial poll.
For example, to generate a service request when a reference UNLK occurs, bit 3 in the
LIA Status Enable register needs to be set (
Poll Enable register must be set (
bit 3 in the LIA Status byte is set. Since bit 3 in the LIA Status byte AND Enable register
is set, this ALSO sets bit 3 (LIA) in the Serial Poll Status byte. Since bit 3 in the Serial
Poll Status byte AND Enable register is set, an SRQ is generated. Bit 6 (SRQ) in the
Serial Poll Status byte is set. Further reference unlocks will not generate another SRQ
until the UNLK status bit is cleared. The UNLK status bit is cleared by reading the LIA
Status byte (with
performs a serial poll to clear the SRQ, does something to try to remedy the situation
(change frequency, experimental parameters, etc.) and then clears the UNLK status bit by
reading the LIA status register. A subsequent UNLK overload will then generate another
SRQ.
Standard Event Status Byte
bit name
0
OPC
1
INP
2
3
QRY
4
EXE
5
CMD
6
URQ
7
PON
The bits in this register remain set until cleared by reading them or by the
command.
SR865A DSP Lock-in Amplifier
*SRE 3,1
LIAS?
). Presumably, the controller is alerted to the unlock via the SRQ,
usage
Operation complete (set by the *OPC command)
Input queue overflow (too many commands received at once, queues
cleared).
unused
Output queue overflow (too many responses waiting to be
transmitted, queues cleared).
A command cannot execute correctly or a parameter is out of range.
An illegal command is received.
Set by any user front panel action.
Set by power-on.
LIAE 3,1
command) and bit 3 in the Serial
command). When a reference unlock occurs,
Chapter 4
*CLS

Advertisement

Table of Contents
loading

Table of Contents