Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-18
2606B-901-01 Rev. B / May 2018
Also see
(on page 7-19)
(on page 7-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
Not applicable
See
Details
Not applicable
Usage
bufferCapacity
=
bufferVar
.capacity
bufferCapacity
The maximum number of readings the buffer can store
bufferVar
The reading buffer; can be a dynamically allocated user-defined buffer or a
dedicated reading buffer
Details
This read-only attribute reads the number of readings that can be stored in the buffer.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the
reading buffer is saved to nonvolatile memory.
The buffer's capacity does not change as readings fill the buffer. A dedicated reading buffer that only
collects basic items can store over 140,000 readings. Turning on additional collection items, such as
timestamps and source values, decreases the capacity of a dedicated reading buffer (for example,
smua.nvbuffer1
), but does not change the capacity of a user-defined dynamically allocated buffer.
A user-defined dynamically allocated buffer has a fixed capacity that is set when the buffer is created.
See the
smu
X
.nvbuffer
Y
attribute for details on accessing dedicated reading buffers. See the
smu
X
.makebuffer()
function for information on creating user-defined dynamically allocated
reading buffers.
Example
bufferCapacity = smua.nvbuffer1.capacity
print(bufferCapacity)
Reads the capacity of dedicated reading
buffer 1 (source-measure unit (SMU)
channel A).
Output:
1.05
The above output indicates that the buffer
can hold 149789 readings.
Also see
(on page 7-191)
(on page 7-209)
(on page 7-238)