
2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-19
bufferVar.clear()
This function empties the buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
bufferVar
.clear()
bufferVar
The reading buffer; can be a dynamically allocated user-defined buffer or a
dedicated reading buffer
Details
This function clears all readings and related recall attributes from the buffer (for example,
bufferVar
.timestamps
and
bufferVar
.statuses
) from the specified buffer.
Example
smua.nvbuffer1.clear()
Clears dedicated reading buffer 1
(source-measure unit (SMU) channel A).
Also see
(on page 7-209)
bufferVar.clearcache()
This function clears the cache.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
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
.