
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-11
Example
print(buffer.getstats(defbuffer1))
Get statistics on
defbuffer1
. Returns a table.
Output:
17ac630
The table has the following entries in it:
n, min, max, mean, stddev
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-9)
(on page 8-11)
(on page 8-17)
(on page 8-77)
(on page 8-78)
(on page 3-10)
(on page 3-27)
buffer.make()
This function creates a user-defined reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
bufferVar =
buffer.make(
bufferSize
)
bufferVar
The name of a user-defined buffer
bufferSize
The maximum number of readings that can be stored in
bufferVar;
minimum is
10
Details
This function creates a user-defined reading buffer.
You cannot assign user-defined reading buffers the same name as an existing buffer, including
defbuffer1
or
defbuffer2
.
Example
capTest2 = buffer.make(200)
Creates a 200-element reading buffer named
capTest2
.
Also see
(on page 3-10)
(on page 3-27)