148 Programming
Chapter
4
SR865A DSP Lock-in Amplifier
Status Reporting Commands
CLS
The
CLS
command clears all status registers. The status enable registers are NOT
cleared.
ESE(?) { j, } { i }
The
ESE
i command sets the
standard event enable register
to the decimal value i
(0
–
255). The
ESE j, i
command sets bit j (0
–
7) to i (0 or 1). The
ESE?
command
queries the value (0
–
255) of the standard event enable register. The
ESE? j
command
queries the value (0 or 1) of bit j.
Example
ESE 17
Set bits 0 and 4 in the standard event enable register
ESE 4, 1
Set bit 4 in the standard event enable register
ESE?
Returns decimal value of the standard event enable register
ESE? 4
Returns bit 4 of the standard event enable register
ESR? { j }
The
ESR?
command queries the value of the
standard event status byte
. The value
is returned as a decimal number from 0 to 255. The
ESR? j
command queries the value
(0 or 1) of bit j (0
–
7). Reading the entire byte will clear it while reading bit j will clear
just bit j.
Example
ESR?
Returns decimal value of the standard event status byte
ESR? 4
Returns bit 4 of the standard event status byte
SRE(?) { j, } { i }
The
SRE i
command sets the
serial poll enable register
to the decimal value i (0
–
255). The
SRE j, i
command sets bit j (0
–
7) to i (0 or 1). The
SRE?
command queries
the value (0
–
255) of the serial poll enable register. The
SRE? j
command queries the
value (0 or 1) of bit j.
Example
SRE 12
Set bits 0 and 3 in the serial poll enable register
SRE 3, 1
Set bit 3 in the serial poll enable register
SRE?
Returns decimal value of the serial poll enable register
SRE? 3
Returns bit 3 of the serial poll enable register
STB? { j }
The
STB?
command queries the value of the
serial poll status byte
. The value is
returned as a decimal number from 0 to 255. The
STB? j
command queries the value
(0 or 1) of bit j (0
–
7). Reading this byte has no effect on its value.
Summary of Contents for SR865A
Page 5: ...Safety and Preparation For Use iii SR865A DSP Lock in Amplifier...
Page 6: ...iv Safety and Preparation For Use SR865A DSP Lock in Amplifier...
Page 54: ...36 Getting Started Chapter 1 SR865A DSP Lock in Amplifier...
Page 118: ......
Page 172: ......
Page 186: ...168 The FFT Display Appendix B SR865A DSP Lock in Amplifier...
Page 192: ......