Status.condition - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Section 8: TSP command reference

status.condition

This attribute stores the status byte condition register.
Type
TSP-Link accessible
Attribute (R)
Yes
Usage
statusByte = status.condition
statusByte
Details
You can use this command to read the status byte, which is returned as a numeric value.
When an enabled status event occurs, a summary bit is set in this register to indicate the event occurrence. The
returned value can indicate that one or more status events occurred. If more than one bit of the register is set,
statusByte equals the sum of their decimal weights. For example, if 129 is returned, bits B0 and B7 are set (1
+ 128). See
Understanding bit settings
If you are using the GPIB, USB, or VXI-11 serial poll sequence of the Model 2450 to get the status
byte (also called a serial poll byte), B6 is the Request for Service (RQS) bit. If the bit is set, it
indicates that a serial poll (SRQ) has occurred. For additional detail, see
page C-13)
The meanings of the individual bits of this register are shown in the following table.
Bit
Decimal
value
0
1
1
2
2
4
3
8
4
16
5
32
6
64
7
128
Example
statusByte = status.condition
print(statusByte)
Also see
None
8-154
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Affected by
Not applicable
The status byte
(on page C-15) for additional information about reading bit values.
Constant
When set, indicates the following has occurred:
status.MSB
An enabled measurement event
Not used
status.EAV
An error or status message is present in the Error Queue
status.QSB
An enabled questionable event
status.MAV
A response message is present in the Output Queue
status.ESB
An enabled standard event
status.MSS
An enabled summary bit of the status byte register is set
status.OSB
An enabled operation event
Where saved
Default value
Not saved
Not applicable
Returns statusByte.
Sample output:
1.29000e+02
Converting this output (129) to its binary equivalent yields
1000 0001
Therefore, this output indicates that the set bits of the
status byte condition register are presently B0 (MSS) and
B7 (OSB).
2450-901-01 Rev. B/September 2013
Serial polling and SRQ
(on

Advertisement

Table of Contents
loading

Table of Contents