
Section 8: TSP command reference
Model 2450 Interactive SourceMeter® Instrument Reference Manual
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
Attribute (R)
Yes
Restore configuration
Instrument reset
Power cycle
Not applicable
Not applicable
Usage
values
=
bufferVar
.sourceformattedvalues[
N
]
values
The output value of the source when reading
N
of the specified buffer was acquired
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 between 1 and the number of readings in
the buffer; use the
bufferVar.
n
command to determine the number of readings
in the buffer
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
reset()
trigger.model.load("SimpleLoop", 6, 0)
trigger.model.initiate()
waitcomplete()
print(defbuffer1.sourceformattedvalues[1])
printbuffer(1,6,defbuffer1.sourceformattedvalues)
Example output:
-00.00041 mV
Example output:
-00.00041 mV, +00.00010 mV,
-00.00033 mV, +00.00003
mV, -00.00028 mV, -
00.00045 mV
Also see
(on page 8-23)
(on page 8-9)
(on page 8-11)
(on page 8-17)
(on page 8-77)
(on page 8-78)
(on page 3-10)
(on page 3-27)