Series 2600B System SourceMeter® instrument Reference Manual Section 3: Reading buffers
2600BS-901-01 Rev. F/August 2021 3-13
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 smuX.buffer.getstats() (on page 9-199) for additional information.
Min and max entry attributes
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
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
Example:
The following programming example illustrates how to output mean and standard deviation statistics
from buffer 1:
statistics = smua.buffer.getstats(smua.nvbuffer1)
print(statistics.mean, statistics.stddev)