
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
Section 3: LPTLib command reference
S530-900-01 Rev. E / September 2017
3-71
This command returns a
0
if executed without error; a negative number indicates an error.
Example
double freq;
double ampltd;
.
.
.
Status1 = scp_init(SCP1);
Status2 = scp_setup(SCP1, 20e6, 850e6, 1e6);
Status3 = scp_measure(SCP1, freq, ampltd);
This example sets the start, stop, and step frequencies of a scan.
Also see
(on page 3-67)
(on page 3-68)
searchX
This command is used to determine the voltage or current required to get a current, voltage, capacitance, or
conductance. It is useful in finding initial threshold points such as junction breakdown or transistor turn on.
Usage
int searchi(int
instr_id
, double
min_val
, double
max_val
, unsigned int
iterate_no
,
double
iterate_time
, double *
result
);
int searchv(int
instr_id
, double
min_val
, double
max_val
, unsigned int
iterate_no
,
double
iterate_time
, double *
result
);
instr_id
The instrument identification code of the sourcing instrument;
SMU
n
,
CMTR
n
,
PSRC
n
min_val
The lower limit of the source range
max_val
The upper limit of the source range
iterate_no
The number of separate current or voltage levels to generate; the range of iterations
is from 1 through 16
iterate_time
The duration, in seconds, of each iteration
result
The floating point variable assigned to the search operation result; it represents the
voltage, with the
searchv
command, or current, with the
searchi
command,
applied during the last search operation
Details
The
trig
X
g
or
trig
X
l
command must be used with the
search
X
command. Triggers and the
search
X
command together initiate a search operation consisting of a series of steps referred to as
iterations. During each iteration, the following events occur:
•
A voltage or current is applied to a circuit node of the device under test (DUT).
•
All triggers are evaluated.
•
If the triggers evaluate true, the source value is moved toward the value specified in the
min_val
parameter. If the triggers do not evaluate true, the source value is moved toward the value
specified in the
max_val
parameter. The source range is then divided in half for the next
iteration.