Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-271
Example
reset()
--set up measure function
smu.measure.func = smu.FUNC_DC_CURRENT
smu.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
This example uses the Simple Loop trigger model template to do a capacitor test. This example produces 200
readings that have output similar to the following example:
Rdg # Time (s)
Current (A)
1
0 8.5718931952528e-11
2
0.151875 1.6215984111057e-10
3
0.303727 1.5521139928865e-10
. . .
198
29.91579194
1.5521250951167e-10
199
30.067648716
1.4131290582142e-10
200
30.219497716
1.5521067764368e-10
Also see
None