Series 2600B System SourceMeter® Instrument Reference Manual
smuX.makebuffer()
This function creates a reading buffer.
Type
TSP-Link accessible
Function
Yes
Usage
bufferVar = smuX.makebuffer(bufferSize)
bufferVar
X
bufferSize
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 smuX.nvbufferY 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)
Also see
collectgarbage() in
Remote reading buffer programming
savebuffer()
smuX.nvbufferY
2600BS-901-01 Rev. B / May 2013
Affected by
The created reading buffer
Source-measure unit (SMU) channel (for example, smua.makebuffer() applies
to SMU channel A)
Maximum number of readings that can be stored
Base library functions
(on page 3-11)
(on page 7-161)
(on page 7-215)
Where saved
Standard libraries
Creates a 200 element reading buffer (mybuffer2)for
SMU channel A.
(on page 6-26)
Section 7: TSP command reference
Default value
(on page 6-26)).
7-197