Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-122
2470-901-01 Rev. A /
May
2019
--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
smu.measure.count
to do a capacitor test. This outputs 200 readings that are similar to
the following output:
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
Example 2
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 also outputs 200
readings that are similar to the following:
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