7-10 Return to Section Topics 2600S-901-01 Rev. C / January 2008
Section 7: Buffer (Data Store) Series 2600 System SourceMeter® Instruments Reference Manual
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 SourceMeter stores 100
current and voltage readings and then recalls all 100 sets of readings.
smua.reset() -
-
Restore Series 2600 defaults.
smua.measure.autorangei = smua.AUTORANGE_ON -
-
Select measure I auto range.
smua.measure.autorangev = smua.AUTORANGE_ON -
-
Select measure V auto range.
format.data = format.ASCII -
-
Select ASCII data format.
smua.nvbuffer1.clear() -
-
Clear buffer 1.
smua.nvbuffer2.clear() -
-
Clear buffer 2.
smua.measure.count = 100 -
-
Set buffer count to 100.
smua.measure.interval = 0.1 -
-
Set measure interval to 0.1s.
smua.source.func = smua.OUTPUT_DCVOLTS -
-
Select source voltage function.
smua.source.levelv = 1 -
-
Output 1V.
smua.source.output =smua.OUTPUT_ON -
-
Turn on output.
smua.measure.overlappediv
(smua.nvbuffer1,smua.nvbuffer2)
- Store current readings in buffer 1,
voltage readings in buffer 2.
waitcomplete() -
-
Wait for buffer to fill.
smua.source.output =smua.OUTPUT_OFF -
-
Turn off output.
printbuffer(1, 100, smua.nvbuffer1) -
-
Return buffer 1 readings 1-100.
printbuffer(1, 100, smua.nvbuffer2) -
-
Return buffer 2 readings 1-100.