2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-191
smuX.makebuffer()
This function creates a reading buffer.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
bufferVar
= smu
X
.makebuffer(
bufferSize
)
bufferVar
The created reading buffer
X
Source-measure unit (SMU) channel (for example,
smua.makebuffer()
applies
to SMU channel A)
bufferSize
Maximum number of readings that can be stored
Details
Reading buffers can be created and allocated dynamically using this function. Use
bufferSize
to
designate the number of readings the buffer can store.
Dynamically allocated reading buffers can be used interchangeably with the
smu
X
.nvbuffer
Y
buffers.
A reading buffer can be deleted by setting all references to the reading buffer equal to
nil
, then
running the garbage collector (see the
collectgarbage()
function in
Example
mybuffer2 = smua.makebuffer(200)
Creates a 200 element reading buffer (
mybuffer2
) for
SMU channel A.
Also see
collectgarbage()
in
(on page 6-27)
Remote reading buffer programming
(on page 3-10)
(on page 7-159)
(on page 7-209)
smuX.measure.autorangeY
This attribute stores the measurement autorange setting.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Instrument reset
SMU reset
Recall setup
Saved setup
1 (smuX.AUTORANGE_ON)