Series 2600B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2600BS-901-01 Rev. B / May 2013
7-197
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
Standard libraries
(on page 6-26)).
Example
mybuffer2 = smua.makebuffer(200)
Creates a 200 element reading buffer (
mybuffer2)
for
SMU channel A.
Also see
collectgarbage() in
Base library functions
(on page 6-26)
Remote reading buffer programming
(on page 3-11)
savebuffer()
(on page 7-161)
smuX.nvbufferY
Содержание System SourceMeter 2601B
Страница 841: ......