Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-106
2606B-901-01 Rev. B / May 2018
Example
smua.reset()
smua.source.rangev = 5
smua.source.rangei = 1
smua.source.levelv = 0
smua.measure.rangev = 5
smua.measure.rangei = 1
smua.measure.nplc = 0.01
smua.measure.autozero = smua.AUTOZERO_ONCE
smua.nvbuffer1.clear()
smua.nvbuffer1.appendmode = 1
smua.source.output = smua.OUTPUT_ON
smub.reset()
smub.source.func = smub.OUTPUT_DCAMPS
smub.source.rangei = 1
smub.source.rangev = 5
smub.source.leveli = 0
smub.measure.rangei = 1
smub.measure.rangev = 5
smub.measure.nplc = 0.01
smub.measure.autozero = smub.AUTOZERO_ONCE
smub.nvbuffer1.clear()
smub.nvbuffer1.appendmode = 1
smub.source.output = smub.OUTPUT_ON
f1, msg1 = ConfigPulseVMeasureI(smua, 0, 5, 1, 0.002, 0.2, 10, smua.nvbuffer1, 1)
f2, msg2 = ConfigPulseIMeasureV(smub, 0,-1, 5, 0.001, 0.2, 10, smub.nvbuffer1, 2)
if (f1 == true) and (f2 == true) then
f3, msg3 = InitiatePulseTestDual(1, 2)
print("Initiate message:", msg3)
else
print("Config errors:", msg1, msg2)
end
Set up channels A and B for pulse operation, configure pulse trains for each channel, and then initiate the pulse
trains if no errors are encountered.
Channel A pulses voltage from a bias level of 0 V to pulse level of 5 V. The pulse level is present for 2 ms, and
the bias level for 200 ms with a 1 A limit setting.
A total of 10 pulses is generated on channel A, and the measurement data is stored in
smua.nvbuffer1
.
This pulse train will be assigned to
tag = 1
.
Channel B pulses current from a bias level of 0 A to pulse level of 1 A. The pulse level is present for 1 ms, and
the bias level for 200 ms with a 5 V limit setting.
A total of 10 pulses is generated on channel B, and the measurement data is stored in
smub.nvbuffer1
.
This pulse train is assigned to
tag = 2
.