2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-17
Example
basetime = smua.nvbuffer1.basetimestamp
print(basetime)
Read the timestamp for the first reading
stored in dedicated reading buffer 1 (source-measure unit (SMU) channel A).
Output:
1.09
This output indicates that the timestamp is 1,283,000,000 seconds (which is Saturday, August 28, 2010 at
12:53:20 PM).
Also see
(on page 7-209)
(on page 7-238)
bufferVar.cachemode
This attribute enables or disables the reading buffer cache (on or off).
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Not applicable
Not saved
1 (enabled)
Usage
cacheMode
=
bufferVar
.cachemode
bufferVar
.cachemode =
cacheMode
cacheMode
The reading buffer cache mode; set to one of the following:
0
: Cache mode disabled (off)
1
: Cache mode enabled (on)
bufferVar
The reading buffer; can be a dynamically allocated user-defined buffer or a
dedicated reading buffer
Details
Assigning a value to this attribute enables or disables the reading buffer cache. When enabled, the
reading buffer cache improves access speed to reading buffer data.
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 or when overwriting data in the reading buffer by setting the
bufferVar
.fillmode
attribute to
smu
X
.FILL_WINDOW
. To avoid this, make sure that you include
commands that automatically invalidate the cache as needed (for example, explicit calls to the
bufferVar
.clearcache()
function) or disable the cache using this attribute
(
bufferVar
.cachemode
).
Example
smua.nvbuffer1.cachemode = 1
Enables reading buffer cache of
dedicated reading buffer 1
(source-measure unit (SMU)
channel A).