Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-231
status.request_enable
This attribute stores the settings of the Service Request (SRQ) Enable Register.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
status.preset()
Not applicable
0
Usage
SRQEnableRegister
= status.request_enable
status.request_enable =
SRQEnableRegister
SRQEnableRegister
The status of the service request (SRQ) enable register; a zero (0)
indicates no bits set (also send 0 to clear all bits); other values indicate
various bit settings (0 to 255)
Details
This command sets or clears the individual bits of the Status Request Enable Register.
The Status Request Enable Register is cleared when power is cycled or when a parameter value of 0
is sent with this command.
The instrument returns a decimal value that corresponds to the binary-weighted sum of all bits set in
the register.
Bit
Decimal
value
Constants
When set, indicates the following has occurred:
0
1
status.MSB
An enabled event in the Measurement Event Register has
occurred.
1
2
Not used
Not used.
2
4
status.EAV
An error or status message is present in the Error Queue.
3
8
status.QSB
An enabled event in the Questionable Status Register has
occurred.
4
16
status.MAV
A response message is present in the Output Queue.
5
32
status.ESB
An enabled event in the Standard Event Status Register
has occurred.
6
64
Not used
Not used.
7
128
status.OSB
An enabled event in the Operation Status Register has
occurred.
Example 1
requestSRQEnableRegister = status.MSB +
status.OSB
status.request_enable = requestSRQEnableRegister
Uses constants to set the MSB and OSB
bits of the service request (SRQ) enable
register and clear all other bits.
Example 2
-- decimal 129 = binary 10000001
requestSRQEnableRegister = 129
status.request_enable = requestSRQEnableRegister
Uses a decimal value to set the MSB and
OSB bits and clear all other bits of the
service request (SRQ) enable register.