Interactive SourceMeter® Instrument Reference Manual Section 8:
2450-901-01 Rev. B/September 2013 8-191
trigger.model.load() — Simple Loop
This function loads a predefined trigger model configuration.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
trigger.model.load("SimpleLoop", count)
trigger.model.load("SimpleLoop", count, delay)
trigger.model.load("SimpleLoop", count, delay, readingBuffer)
The number of measurements to make
The time before the measurement in seconds; default is 0
The reading buffer; the default buffers (
or
) or
the name of a user-defined buffer; if no buffer is specified, this parameter
defaults to
Details
This command sets up a loop that sets a delay, makes a measurement, and then repeats the loop the number of
times you defined in the count parameter.
Example
--set up measure function
smu.measure.func = smu.FUNC_DC_CURRENT
smu.measure.terminals = smu.TERMINALS_REAR
smu.measure.autorange = smu.ON
smu.measure.nplc = 1
--set up source function
smu.source.func = smu.FUNC_DC_VOLTAGE
smu.source.ilimit.level = 0.1
smu.source.level = 20
smu.source.delay = 0.1
smu.source.highc = smu.OFF
--turn on output and initiate readings
smu.source.output = smu.ON
trigger.model.load("SimpleLoop", 200)
trigger.model.initiate()
waitcomplete()
--Parse index and data into three columns
print("Rdg #", "Time (s)", "Current (A)")
for i=1, defbuffer1.n do
print(i, defbuffer1.relativetimestamps[i], defbuffer1[i])
end
--Discharge the capacitor to 0 V and turn off the output
smu.source.level=0
delay(2)
smu.source.output=smu.OFF