![Keithley SourceMeter 2600B Series Скачать руководство пользователя страница 360](http://html2.mh-extra.com/html/keithley/sourcemeter-2600b-series/sourcemeter-2600b-series_reference-manual_4085220360.webp)
Series 2600B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2600BS-901-01 Rev. C / August 2016
7-21
Usage
bufferVar
.clearcache()
bufferVar
The reading buffer; can be a dynamically allocated user-defined buffer or a
dedicated reading buffer
Details
This function clears all readings from the specified cache.
If you run successive operations that overwrite reading buffer data, the reading buffer may return
stale cache data. This can happen when you:
•
Initiate successive sweeps without reconfiguring the sweep measurements. Watch for this when running
Lua code remotely on more than one node, because values in the reading buffer cache may change
while the Lua code is running.
•
Overwrite data in the reading buffer by setting the
bufferVar
.fillmode
attribute to
smu
X
.FILL_WINDOW
.
To avoid this, you can include explicit calls to the
bufferVar
.clearcache()
function to remove
stale values from the reading buffer cache.
Example
smua.nvbuffer1.clearcache()
Clears the reading buffer cache for
dedicated reading buffer 1 (source-measure
unit (SMU) channel A).
Also see
(on page 7-24)
Removing stale values from the reading buffer cache
(on page 6-58)
(on page 7-231)
bufferVar.collectsourcevalues
This attribute sets whether or not source values will be stored with the readings in the buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Not applicable
See
Details
0 (disabled)
Usage
state
=
bufferVar
.collectsourcevalues
bufferVar
.collectsourcevalues =
state
state
Source value collection status; set to one of the following:
•
0
: Source value collection disabled (off)
•
1
: Source value collection enabled (on)
bufferVar
The reading buffer; can be a dynamically allocated buffer (user-defined), or a
dedicated reading buffer (such as
smua.nvbuffer1
)