User manual
Series 2600B
System SourceMeterĀ® Instrument Reference Manual Section 7: TSP command
reference
2600BS-901-01 Rev. B / May 2013 7-25
Details
This read-only attribute contains the number of readings presently stored in the buffer.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the reading buffer
is saved to nonvolatile memory.
Example
numberOfReadings = smua.nvbuffer1.n
print(numberOfReadings)
Reads the number of readings stored in
dedicated reading buffer 1 (source-measure
unit (SMU) channel A).
Output:
1.25000+02
The above output indicates that there are 125
readings stored in the buffer.
Also see
bufferVar.measurefunctions (on page 7-22)
bufferVar.measureranges (on page 7-23)
bufferVar.readings (on page 7-25)
bufferVar.sourcefunctions (on page 7-26)
bufferVar.sourceoutputstates (on page 7-27)
bufferVar.sourceranges (on page 7-28)
bufferVar.sourcevalues (on page 7-29)
bufferVar.statuses (on page 7-30)
bufferVar.timestamps (on page 7-32)
Reading buffers (on page 3-6)
smuX.measure.overlappedY() (on page 7-209)
smuX.measure.Y() (on page 7-213)
smuX.nvbufferY (on page 7-215)
smuX.trigger.measure.Y() (on page 7-244)
bufferVar.readings
This attribute contains the readings stored in a specified reading buffer.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (R)
Yes
Clearing the buffer
See Details
Not applicable
Usage
reading = bufferVar.readings[N]
reading
The value of the reading in the specified reading buffer
bufferVar
The reading buffer; can be a dynamically allocated user-defined buffer or a
dedicated reading buffer
N
The reading number (1 to bufferVar.n)
Details
The readings buffer recall attribute is like an array (a Lua table) of the readings stored in the reading buffer.
This array holds the same data that is returned when the reading buffer is accessed directly; that is, rb[2] and
rb.readings[2] access the same value.
For dedicated reading buffers, all buffer attributes are saved to nonvolatile memory only when the reading buffer
is saved to nonvolatile memory.