
2600AS-901-01 Rev. B / September 2008
Return to
7-11
Series 2600A System SourceMeter® Instruments Reference Manual
Section 7: Reading Buffers
Dual buffer example
The listing below shows a programming example for storing both current and voltage readings
using Buffer 1 for current and Buffer 2 to store voltage readings. The Series 2600A stores 100
current and voltage readings and then recalls all 100 sets of readings.
-- Return source values 1-100.
printbuffer(1, 100, smua.nvbuffer1.sourcevalues)
-- Restore Series 2600A defaults.
smua.reset()
-- Select measure I auto range.
smua.measure.autorangei = smua.AUTORANGE_ON
-- Select measure V auto range.
smua.measure.autorangev = smua.AUTORANGE_ON
--Select ASCII data format.
format.data = format.ASCII
-- Clear buffer 1.
smua.nvbuffer1.clear()
-- Clear buffer 2.
smua.nvbuffer2.clear()
-- Set buffer count to 100.
smua.measure.count = 100
--Set measure interval to 0.1s.
smua.measure.interval = 0.1
-- Select source voltage function.
smua.source.func = smua.OUTPUT_DCVOLTS
-- Output 1 V.
smua.source.levelv = 1
-- Turn on output.
smua.source.output = smua.OUTPUT_ON
-- Store current readings in buffer 1, current readings in
-- buffer 2.
smua.measure.overlappediv(smua.nvbuffer1, smua.nvbuffer2)
-- Wait for buffer to fill.
waitcomplete()
-- Turn off output.
smua.source.output =smua.OUTPUT_OFF
-- Return buffer 1 readings 1-100.
printbuffer(1, 100, smua.nvbuffer1)
-- Return buffer 2 readings 1-100.
printbuffer(1, 100, smua.nvbuffer2)