Section 7: Command reference
Model 2651A High Power System SourceMeter® Instrument Reference Manual
7-20
2651A-901-01 Rev. A / March 2011
Example
smua.nvbuffer1.clear()
Clears dedicated reading buffer 1.
Also see
(on page 3-6)
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 buffer (user-defined), or a
dedicated reading buffer (such as
smua.nvbuffer1
)
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:
•
initiating successive sweeps without reconfiguring the sweep measurements. Watch for this when
running test script language (TSL) code remotely on more than one node, because values in the
reading buffer cache may change while the TSL code is running.
•
overwriting 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 dedicated reading buffer 1.
cache.
Also see
(on page 3-6)
Removing stale values from the reading buffer