Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-22
2470-901-01 Rev. A /
May
2019
bufferVar.extravalues
This attribute contains the additional values in a reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Restore configuration
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
extraValue
=
bufferVar
.extravalues[
N
]
extravalue
The extra values for readings
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 attribute contains an additional value, such as the extra value written to a writable buffer. The
reading buffer style must be set to full to use this option.
Example
extBuffer = buffer.make(100, buffer.STYLE_WRITABLE_FULL)
buffer.write.format(extBuffer, buffer.UNIT_WATT, buffer.DIGITS_3_5,
buffer.UNIT_WATT, buffer.DIGITS_3_5)
buffer.write.reading(extBuffer, 1, 7)
buffer.write.reading(extBuffer, 2, 8)
buffer.write.reading(extBuffer, 3, 9)
buffer.write.reading(extBuffer, 4, 10)
buffer.write.reading(extBuffer, 5, 11)
buffer.write.reading(extBuffer, 6, 12)
printbuffer(1, 6, extBuffer.readings, extBuffer.units, extBuffer.extravalues,
extBuffer.units)
Creates a 100-point reading buffer named
extBuffer
. Style is full writable.
Set the data format to show units of watts with 3½ digit resolution for the first value and for the second value in
the buffer index.
Write 12 pieces of data into the buffer.
Print the buffer, including the readings and units.
Read the buffer.
Output:
1, Watt DC, 7, Watt DC, 2, Watt DC, 8, Watt DC, 3, Watt DC, 9, Watt DC, 4, Watt DC,
10, Watt DC, 5, Watt DC, 11, Watt DC, 6, Watt DC, 12, Watt DC
Also see
(on page 14-9)
(on page 14-12)
(on page 14-18)
(on page 14-99)
(on page 14-100)
(on page 6-25)