3.4 Commands
55
3.4.8 Status Commands
(continued)
Service Request Enable
*SRE(?) [
i,
] {
j
}
Set (query) the Service Request Enable register for the Status Byte regis‑
ter. At least one integer parameter is required, and a second integer pa‑
rameter is optional. When setting, if only a single parameter {
j
} is sent,
{
j
} is the binary‑weighted sum of the bits to be enabled. For example, to
enable bits 5 and 7, {
j
} is set to
32 + 128 = 160
.
»
*SRE 160
Example:
If both [
i
] and {
j
} are sent, then [
i
] represents the bit number (0 through
7), and {
j
} can be either 0 or 1. Bits
≠
i
are unaffected.
»
*SRE 5, 0
Example:
A query with no included bit parameter returns the binary‑weighted
sum of the enabled bits. A query with an included bit parameter returns
the value of that bit.
»
*SRE?
Example:
128
»
*SRE? 7
1
See also Section 3.5 on the Status Model.
Event Status Register
*ESR? [
i
]
Query the Standard Event Status Register [bit i].
Upon executing
*ESR?
, the returned bit(s) of the ESR register are
cleared.
»
*ESR?
Example:
64
Event Status Enable
*ESE(?) [
i,
] {
j
}
Set (query) the Standard Event Status Enable Register [bit i] {to j}.
»
*ESE 6, 1
Example:
»
*ESE?
64
SR542 Precision Optical Chopper