Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2657A-901-01 Rev. B/December 2012
7-193
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()
(on page 6-25)).
Example
mybuffer2 = smua.makebuffer(200)
Creates a 200 element reading buffer (
mybuffer2)
for
SMU channel A.
Also see
collectgarbage() in
Remote reading buffer programming
(on page 3-10)
smuX.measure.adc
This attribute contains the analog-to-digital converter selection.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Instrument reset
SMU reset
Recall setup
Saved setup
0 (smuX.ADC_INTEGRATE)
Usage
adc
= smu
X
.measure.adc
smu
X
.measure.adc =
adc
adc
The analog-to-digital (A/D) converter used for measurements; set to one of the
following:
0
or
smu
X
.ADC_INTEGRATE
: Integrating A/D converter
1
or
smu
X
.ADC_FAST
: Fast A/D converter
X
Source-measure unit (SMU) channel (for example,
smua.measure.adc
applies to
SMU channel A).
Summary of Contents for 2657A
Page 3: ......