8: TSP command reference Model 2450 Interactive SourceMeter® Instrument
8-28 2450-901-01 Rev. B/September 2013
bufferVar.sourceformattedvalues
This attribute contains the source levels formatted as they appear on the front-panel display when the readings in
the reading buffer were acquired.
Type TSP-Link accessible Affected by Where saved Default value
Instrument reset
Power cycle
Usage
values = bufferVar.sourceformattedvalues[N]
The output value of the source when reading N of the specified buffer was acquired
The name of the reading buffer, which may be a default buffer (defbuffer1 or
defbuffer2
) or a user-defined buffer
The reading number N; can be any value between 1 and the number of readings in
the buffer; use the bufferVar.n command to determine the number of readings
Details
The attribute is an array (a Lua table) of the sourced value that was in effect at the time of the reading. The
source levels are formatted the same way the readings are formatted when they appear on the front-panel
display.
Example
trigger.model.load("SimpleLoop", 6, 0)
trigger.model.initiate()
waitcomplete()
print(defbuffer1.sourceformattedvalues[1])
printbuffer(1,6,defbuffer1.sourceformattedvalues)
-00.00041 mV
Example output:
-00.00041 mV, +00.00010 mV,
-00.00033 mV, +00.00003
mV, -00.00028 mV, -
Also see
bufferVar.n (on page 8-23)
buffer.delete() (on page 8-9)
buffer.make() (on page 8-11)
bufferVar.clear() (on page 8-17)
print() (on page 8-77)
printbuffer() (on page 8-78)
Reading buffers (on page 3-10)
Remote buffer operation (on page 3-27)