
Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-19
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
Clearing the buffer cache
Instrument reset
Recall setup
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
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. 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
buffer1.cachemode = 1
Enables reading buffer cache.
Also see
(on page 11-22)
bufferVar.capacity
This attribute contains the number of readings a buffer can store.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Instrument reset
Recall setup
Create configuration script
Save setup
Not applicable
Usage
bufferCapacity
=
bufferVar
.capacity
bufferCapacity
The maximum number of readings the buffer can store
bufferVar
The reading buffer
Details
This read-only attribute reads the number of readings that can be stored in the buffer.