Section 3: Reading buffers Series 2600B System SourceMeter® instrument Reference Manual
3-12 2600BS-901-01 Rev. F/August 2021
Buffer storage control programming examples
The programming examples below illustrate the use of buffer storage control attributes.
Buffer control programming examples
smua.nvbuffer1.collectsourcevalues = 1
Enable source value storage.
smua.nvbuffer1.appendmode = 1
Enable buffer append mode.
smua.nvbuffer1.collecttimestamps = 0
Disable timestamp storage.
smua.nvbuffer1.timestampresolution = 0.001
Set timestamp resolution to 0.001024 s.
smua.nvbuffer1.fillcount = 50
Set 50 as the number of readings the buffer stores
before restarting at index 1.
smua.nvbuffer1.fillmode = 0
Set the reading buffer to fill once (do not overwrite
old data).
Buffer read-only attribute programming examples
The following programming examples illustrate use of buffer read-only attributes.
Buffer read-only attribute programming examples
number = smua.nvbuffer1.n
Request the number of readings in the buffer.
buffer_size = smua.nvbuffer1.capacity
Statistic attributes
Use the smuX.buffer.getstats() function to access the reading buffer data statistics. The table
below lists the attributes that you can use to access the reading buffer statistics.
Attributes for accessing reading buffer data
The number of data points on which the statistics are based
The average of all readings added to the buffer
The standard deviation of all readings (samples) added to the buffer
A table containing data about the minimum reading value added to
the buffer
A table containing data about the maximum reading value added to
the buffer