
Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
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
reading
The reading value
timestamp
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
(on page 8-11)
(on page 8-14)
(on page 8-19)
(on page 8-92)
(on page 8-93)
(on page 3-2)
(on page 3-23)