4.4
Commands
4 – 21
Status byte
*STB? [
i
]
Reads the Status Byte register [bit
i
].
*STB?
Example:
0
Service request enable
*SRE(?) [
i,
]
{
j
}
Set (query) the Service Request Enable register [bit
i
]
{
to
j
}
.
*SRE 0,1
Example:
Standard event status
*ESR? [
i
]
Reads the Standard Event Status Register [bit
i
].
Upon executing
*ESR?
, the returned bit(s) of the ESR register are
cleared.
*ESR?
Example:
64
Standard event status enable
*ESE(?) [
i,
]
{
j
}
Set (query) the Standard Event Status Enable Register [bit
i
]
{
to
j
}
.
*ESE 6,1
Example:
ESE?
64
Clear status
*CLS
*CLS
immediately clears the ESR register, and the UNLOCK and
OVERLOAD bits in the Status Byte.
*CLS
Example:
Last execution error
LEXE?
Query the last execution error code. A query of
LEXE?
always clears
the error code, so a subsequent
LEXE?
will return
0
. Valid codes are:
Value
Definition
0
No execution error since last
LEXE?
1
Illegal value
2
Wrong token
3
Invalid bit
4
Queue full
5
Not compatible
SR124
Analog Lock-In Amplifier