7-12 Buffer (Data Store)
Series 2600 System SourceMeters Reference Manual
2600S-901-01 Rev. A / May 2006
Return to
Buffer programming examples
Defined buffer example
The listing below shows a programming example for storing data using the pre-
defined Buffer 1 for Channel A. The SourceMeter loops for voltages from 0.01V to
1V with 0.01V steps (essentially performing a staircase sweep), stores 100
current readings and source values in Buffer 1, and then recalls all 100 readings
and source values.
smua.reset()
--Restore Series 2600 defaults.
display.screen = 0
--Select Channel A display.
display.smua.measure.func =
display.MEASURE_DCAMPS
--Display current.
smua.measure.autorangei = smua.AUTORANGE_ON
--Select measure I auto range.
format.data = format.ASCII
--Select ASCII data format.
smua.nvbuffer1.clear()
--Clear Buffer 1.
smua.nvbuffer1.appendmode = 1
--Enable append buffer mode.
smua.nvbuffer1.collectsourcevalues = 1
--Enable source value storage.
smua.measure.count = 1
--Set count to 1.
smua.source.func = smua.OUTPUT_DCVOLTS
--Select source voltage function.
smua.source.levelv = 0.0
-- Set bias voltage to 0V.
smua.source.output =smua.OUTPUT_ON
--Turn on output.
for v = 0.01, 1.0, 0.01 do
--Loop for voltages from 0.01 to 1V.
smua.source.levelv = v
--Set source voltage.
smua.measure.i(smua.nvbuffer1)
--Measure current, store in buffer.
waitcomplete()
--Wait for reading to complete.
end
--End loop.
smua.source.output =smua.OUTPUT_OFF
--Turn off output.
printbuffer(1, 100, smua.nvbuffer1.readings)
--Return readings 1-100.
printbuffer(1, 100,
smua.nvbuffer1.sourcevalues)
--Return source values 1-100.
Summary of Contents for SourceMeter 2600 Series
Page 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Page 592: ......
Page 593: ......