Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-102
2606B-901-01 Rev. B / May 2018
i_leakage_threshold()
This KIHighC factory script function measures the current and compares it to a threshold. This continues until
either the measured current drops below the threshold or the timeout expires.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
f
= i_leakage_threshold(
smu, levelv, limiti, sourcedelay, measurei, measuredelay,
threshold, timeout
)
f
A Boolean flag; this flag will be
true
when the current is below the threshold,
false
if threshold is not reached before timeout expires
smu
Instrument channel (for example,
smua
refers to SMU channel A)
levelv
Voltage level to step to when this function is called
limiti
Current limit setting for the voltage step
sourcedelay
Delay to wait before lowering the current limit for measurement
measurei
Current limit (and measure range); note the current limit is lower at this level and
because high-capacitance mode is active, the measure range will follow
measuredelay
Delay before the first measurement after measure range is changed
threshold
The specified current that establishes the test limit
timeout
Amount of time (in seconds) to wait for the current to drop to
threshold
after all
the delays have occurred
Details
This function causes the
smu
to:
•
Change its current limit to
limiti
with a voltage output of
levelv
for
sourcedelay
time, and
then changes its current limit to
measurei
(that also changes the measurement range to
measurei
) for
measuredelay
time
•
When
measuredelay
time expires, measurements are taken at a rate determined by the
smu
X
.measure.nplc
setting
The function returns
true
if threshold is reached; the function returns
false
if threshold is not
reached before
timeout
expires.
When testing the leakage current threshold:
•
Charge the capacitor before calling this function (the instrument's output is usually at a non-zero
voltage prior to calling this function; when measuring leakage, this function does not charge the
capacitor).
•
If testing the device's leakage current threshold, set
levelv
= 0
.