12-66 Return to Section Topics 2600S-901-01 Rev. C / January 2008
Section 12: Instrument Control Library Series 2600 System SourceMeter® Instruments Reference Manual
Example This Model 2601/2602 measure and step function measures current starting at a
source value of 0V. After each current measurement, the source is stepped 100mV
for the next current measurement. The final source level is 1V where current is
again measured.
local ivalues = {}
smua.source.rangev = 1
smua.source.levelv = 0
smua.measure.rangei = 0.01
smua.source.output = smua.OUTPUT_ON
for index = 1, 10 do
ivalues[index] = smua.measureiandstep(index / 10)
end
ivalues[11] = smua.measure.i()
smuX.nvbufferY
X = SMU channel (a or b)
Y = NV buffer (1 or 2)
Attribute Non-volatile reading buffers.
Usage smuX.nvbufferY
Remarks • There are two reading buffers: smuX.nvbuffer1 and smuX.nvbuffer2.
• All routines that return measurements can return them in reading buffers. Overlapped
measurements are always returned in a reading buffer. Synchronous measurements
return either a single-point measurement or can be stored in a reading buffer if passed to
the measurement command.
• The non-volatile reading buffers will retain their data between power cycles.
Details See “Reading buffers” in this section and in Section 7.
Also see smuX.makebuffer, smuX.measure.overlappedY, smuX.measure.Y
Example Store current readings from SMU A into buffer 1:
smua.measure.overlappedi(smua.nvbuffer1)
smuX.nvbufferY.appendmode
X = SMU channel (a or b)
Y = NV buffer (1 or 2)
Attribute Append mode for the reading buffer.
Usage state = smuX.nvbufferY.appendmode -- Reads append mode.
smuX.nvbufferY.appendmode = state -- Writes append mode.
Set state to one of the following values:
0 Append mode off New measure data overwrites the previous
buffer content.
1 Append mode on Appends new measure data to the present
buffer content.
Remarks • Assigning to this attribute enables or disables the buffer append mode.
• With append mode on, the first new measurement will be stored at rb[n+1], where n is
the number of readings stored in the buffer.
Details See “Reading buffers” in this section and in Section 7.
Also see smuX.measure.overlappedY, smuX.measure.Y, smuX.nvbufferY
Example Append new readings for SMU A to contents of buffer 1:
smua.nvbuffer1.appendmode = 1
smuX.nvbufferY.basetimestamp
X = SMU channel (a or b)
Y = NV buffer (1 or 2)
Attribute Timestamp of when the first reading was stored from time of power-up.
Usage basetime = smuX.nvbufferY.basetimestamp