Interactive SourceMeter® Instrument Reference Manual Section 8:
2461-901-01 A/November 2015 8-13
Use the following command to get statsVar; a table with the following entries in it: n, min, max,
mean, and stddev.
statsVar = buffer.getstats(bufferVar)
Use the following commands to print these entries:
print(statsVar.n)
print(statsVar.mean)
print(statsVar.stddev)
print(statsVar.min.reading)
print(statsVar.min.timestamp)
print(statsVar.min.seconds)
print(statsVar.min.fractionalseconds)
print(statsVar.max.reading)
print(statsVar.max.seconds)
print(statsVar.max.fractionalseconds)
print(statsVar.max.timestamp)
The commands that return minimum and maximum values each also return tables. These tables
contain the following values:
Attribute Description
The min.timestamp is the timestamp of the minimum data point in the
buffer and the max.timestamp is the timestamp of the maximum data
point in the buffer
Example
defBufStats = buffer.getstats(defbuffer1)
print(defBufStats)
Assign the name defBufStats to the table.
Get statistics for the default reading buffer
named defbuffer1
Returns the defBufStats table with the
following entries in it:
n, min, max, mean, stddev
Also see
buffer.delete() (on page 8-11)
buffer.make() (on page 8-14)
bufferVar.clear() (on page 8-19)
print() (on page 8-92)
printbuffer() (on page 8-93)
Reading buffers (on page 3-2)
Remote buffer operation (on page 3-23)