S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual Section 3:
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 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
scp_init (on page 3-67)
scp_measure (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);
The instrument identification code of the sourcing instrument; SMUn, CMTRn, PSRCn
The lower limit of the source range
The upper limit of the source range
The number of separate current or voltage levels to generate; the range of iterations
is from 1 through 16
The duration, in seconds, of each iteration
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 trigXg or trigXl command must be used with the searchX command. Triggers and the
searchX 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.