Buffervar.readings - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Section 8: TSP command reference
Example
reset()
testData = buffer.make(100)
trigger.model.load("SimpleLoop", 3, 0, testData)
trigger.model.initiate()
waitcomplete()
print(testData.n)
print(defbuffer1.n)
print(defbuffer2.n)
Also see
buffer.delete()
buffer.make()
bufferVar.clear()
print()
(on page 8-77)
printbuffer()
(on page 8-78)
Reading buffers
Remote buffer operation

bufferVar.readings

This attribute contains the readings stored in a specified reading buffer.
Type
TSP-Link accessible
Attribute (R)
Yes
Usage
readings = bufferVar.readings[N]
readings
bufferVar
N
Example 1
reset()
tD = buffer.make(50)
trigger.model.load("SimpleLoop", 3, 0, tD)
trigger.model.initiate()
waitcomplete()
print(tD.readings[1])
8-24
(on page 8-9)
(on page 8-11)
(on page 8-17)
(on page 3-10)
(on page 3-27)
Affected by
Restore configuration
Instrument reset
Power cycle
The readings in the specified reading buffer
The name of the reading buffer, which may be a default buffer (defbuffer1 or
defbuffer2) or a user-defined buffer
The reading number N; can be any value between 1 and the number of readings in
the buffer; use the bufferVar.n command to determine the number of readings
in the buffer
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Create a reading buffer named
testData, configure the instrument to
make three measurements, and store the
readings in the buffer.
Print the number of readings in
testData:
Output:
3
Print the number of readings in
defbuffer1:
Example output:
66
Print the number of readings in
defbuffer2:
Example output:
0
Where saved
Not applicable
Create a reading buffer named tD, configure the
instrument to make three measurements, and
store the readings in the buffer.
Print the first reading in tD.
Output:
-9.6420389034124e-12
Default value
Not applicable
2450-901-01 Rev. B/September 2013

Advertisement

Table of Contents
loading

Table of Contents