Model 2606B System SourceMeter® Instrument Reference Manual
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
Attribute
n
mean
stddev
min
max
If n equals zero (0), all other attributes are nil because there is no data to base any statistics on. If n
equals 1, the stddev attribute is nil because the standard deviation of a sample size of 1
is undefined.
The min and max entries have the attributes described in the following table (bufferVar is the name
of the buffer). See
Min and max entry attributes
Attribute
measurefunction
measurerange
reading
sourcefunction
sourceoutputstate
sourcerange
sourcevalue
status
timestamp
2606B-901-01 Rev. C November 2021
When returned
Description
Always
The number of data points on which the statistics are based
When n > 0
The average of all readings added to the buffer
When n > 1
The standard deviation of all readings (samples) added to the buffer
When n > 0
A table containing data about the minimum reading value added to
the buffer
When n > 0
A table containing data about the maximum reading value added to
the buffer
smuX.buffer.getstats()
Description
String indicating the function that was measured for the reading (current,
voltage, ohms, or watts)
The full-scale range value for the measurement range used when the
measurement was made
The reading value
String indicating the source function at the time of the measurement
(current or voltage)
String indicating the state of the source (off or on)
Full-scale range value for the source range used when the measurement
was made
If bufferVar.collectsourcevalues is enabled, the sourced value in
effect at the time of the reading
Status value for the reading; the status value is a floating-point number that
encodes the status value into a floating-point value
If bufferVar.collecttimestamps is enabled, the timestamp, in
seconds, between when the reading was acquired and when the first
reading in the buffer was acquired; adding this value to the base timestamp
produces the actual time the measurement was acquired
(on page 15-193) for additional information.
Section 6: Reading buffers
6-11
Need help?
Do you have a question about the KEITHLEY SourceMeter 2606B and is the answer not in the manual?
Questions and answers