![Tektronix Keithley SourceMeter 2470 Reference Manual Download Page 675](http://html1.mh-extra.com/html/tektronix/keithley-sourcemeter-2470/keithley-sourcemeter-2470_reference-manual_1078034675.webp)
2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-35
bufferVar.sourcevalues
This attribute contains the source levels being output when 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
sourceValue
=
bufferVar
.sourcevalues[
N
]
sourceValue
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 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 is like an array (a Lua table) of the sourced value in effect at the time of the reading.
The values returned by this command depend on the source readback state:
If readback is off, the value is the programmed value
If readback is on, the value is the actual measured source value
Example
reset()
testData = buffer.make(50)
smu.source.func = smu.FUNC_DC_CURRENT
smu.source.level = 1e-6
smu.source.output = smu.ON
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
printbuffer(1, 3, testData.sourcevalues)
Create a reading buffer named
testData
, configure the instrument to
make three measurements, and store the
readings in the buffer.
Set the source value to 1e-6 A.
Print the source values being output when
readings in the reading buffer were
acquired.
Example output:
9.9999874692e-07,
1.0000017028e-06,
1.0000054544e-06
Also see
(on page 14-32)
(on page 14-37)
(on page 14-24)
(on page 14-9)
(on page 14-12)
(on page 14-18)
(on page 14-99)
(on page 14-100)
(on page 6-25)
(on page 14-167)