Buffer.delete(); Buffer.getstats() - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2450 Interactive SourceMeter® Instrument Reference Manual

buffer.delete()

This function deletes a user-defined reading buffer.
Type
TSP-Link accessible
Function
Yes
Usage
buffer.delete(readingBufferVariable)
readingBufferVariable
Details
You cannot delete the default reading buffers, defbuffer1 and defbuffer2.
Example
buf400 = buffer.make(400)
smu.measure.read(buf400)
printbuffer(1, buf400.n, buf400.relativetimestamps)
buffer.delete(buf400)
Create a 400-element reading buffer named buf400.
Make measurements and store the readings in buf400.
Print the relative timestamps for each reading in the buffer.
Example output, assuming five readings are stored in the buffer:
0, 0.412850017, 0.821640085, 1.230558058, 1.629523236
Delete buf400.
Also see
buffer.make()
bufferVar.clear()
printbuffer()
Reading buffers
Remote buffer operation

buffer.getstats()

This function returns statistics from a specified reading buffer.
Type
TSP-Link accessible
Function
Yes
Usage
buffer.getstats(bufferVar)
statsVar = buffer.getstats(bufferVar)
bufferVar
statsVar
2450-901-01 Rev. B/September 2013
Affected by
(on page 8-11)
(on page 8-17)
(on page 8-78)
(on page 3-10)
(on page 3-27)
Affected by
The name of the reading buffer, which may be a default buffer (defbuffer1 or
defbuffer2) or a user-defined buffer; if no buffer is specified, this parameter
defaults to defbuffer1
A table with the following entries: n, min, max, mean, and stddev; see Details for
information on the entries
Where saved
The name of a user-defined reading buffer
Where saved
Section 8: TSP command reference
Default value
Default value
8-9

Advertisement

Table of Contents
loading

Table of Contents