7-14 Buffer (Data Store)
Series 2600 System SourceMeters Reference Manual
2600S-901-01 Rev. A / May 2006
Return to
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()
--Restore Series 2600 defaults.
smua.measure.autorangei = smua.AUTORANGE_ON
--Select measure auto range.
format.data = format.ASCII
--Select ASCII data format.
mybuffer = smua.makebuffer(100)
--Allocate mybuffer, 100 readings.
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.overlappedi(mybuffer)
--Store current readings in mybuffer.
waitcomplete()
--Wait for buffer to fill.
smua.source.output =smua.OUTPUT_OFF
--Turn off output.
printbuffer(1, 100, mybuffer)
--Return readings 1-100 from mybuffer.
mybuffer = nil
--Delete mybuffer.
Содержание SourceMeter 2600 Series
Страница 507: ...AppendixA Specifications Appendix A topics Model 2600S Specifications page A 2 2600S 901 01 Rev A May 2006...
Страница 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Страница 592: ......
Страница 593: ......