Keithley SourceMeter 2600 Series Reference Manual page 206

Table of Contents

Advertisement

7-14
Buffer (Data Store)
Dynamically allocated buffer example
The listing below shows a programming example for storing data using an
allocated buffer called mybuffer for Channel A. The SourceMeter stores 100
current readings in mybuffer and then recalls all the readings.
smua.reset()
smua.measure.autorangei = smua.AUTORANGE_ON
format.data = format.ASCII
mybuffer = smua.makebuffer(100)
smua.measure.count = 100
smua.measure.interval = 0.1
smua.source.func = smua.OUTPUT_DCVOLTS
smua.source.levelv = 1
smua.source.output =smua.OUTPUT_ON
smua.measure.overlappedi(mybuffer)
waitcomplete()
smua.source.output =smua.OUTPUT_OFF
printbuffer(1, 100, mybuffer)
mybuffer = nil
2600S-901-01 Rev. A / May 2006
Series 2600 System SourceMeters Reference Manual
Return to
Section 7 topics
--Restore Series 2600 defaults.
--Select measure auto range.
--Select ASCII data format.
--Allocate mybuffer, 100 readings.
--Set buffer count to 100.
--Set measure interval to 0.1s.
--Select source voltage function.
--Output 1V.
--Turn on output.
--Store current readings in mybuffer.
--Wait for buffer to fill.
--Turn off output.
--Return readings 1-100 from mybuffer.
--Delete mybuffer.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents