Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-32
2470-901-01 Rev. A /
May
2019
bufferVar.sourcestatuses
This attribute contains the source status conditions of the instrument for the reading point.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Restore configuration
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
statusInformation
=
bufferVar
.sourcestatuses[
N
]
statusInformation
The status value when reading
N
of the specified buffer was acquired;
Source status values are:
Overvoltage protection was active:
buffer.STAT_PROTECTION
Measured source value was read:
buffer.STAT_READBACK
Overtemperature condition was active:
buffer.STAT_OVER_TEMP
Source function level was limited:
buffer.STAT_LIMIT
Four-wire sense was used:
buffer.STAT_SENSE
Output was on:
buffer.STAT_OUTPUT
bufferVar
The name of the reading buffer, which may be a default buffer (
defbuffer1
or
defbuffer2
) or a user-defined buffer
N
The reading number
N
; can be any value from 1 to the number of readings in the
buffer; use the
bufferVar.
n
command to determine the number of readings in
the buffer
Details
This buffer recall attribute holds an array (a Lua table) of the status values for all the readings in the
buffer. The status values are floating-point numbers that encode the status value for each
measurement made. See the following table for values.
Buffer status bits for source function when reading was acquired
Bit
Name
Decimal value Description
2
STAT_PROTECTION
4
Overvoltage protection was active
3
STAT_READBACK
8
Measured source value was read
4
STAT_OVER_TEMP
16
Overtemperature condition was active
5
STAT_LIMIT
32
Source function level was limited
6
STAT_SENSE
64
Four-wire sense was used
7
STAT_OUTPUT
128
Output was on