14: TSP command reference 2470 High Voltage SourceMeter Instrument Referen
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
Instrument reset
Power cycle
Usage
extraValue = bufferVar.extravalues[N]
The extra values for readings
The name of the reading buffer, which may be a default buffer (defbuffer1 or
) or a user-defined buffer
N
; can be any value from 1 to the number of readings in the buffer;
use the bufferVar.
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,
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
buffer.delete() (on page 14-9)
buffer.make() (on page 14-12)
bufferVar.clear() (on page 14-18)
print() (on page 14-99)
printbuffer() (on page 14-100)
Remote buffer operation (on page 6-25)