S530 Parametric Test System Test Subroutine Library User's Manual
Section 3: Test subroutine library reference
S530-907-01 Rev. A / September 2015
3-49
Example
result = leak(hi, lo, sub, v, ilim)
Schematic
logstp
This subroutine creates an array using logarithmic steps.
Usage
int logstp(double
xstart
, double
xstop
, double
*steps
, int
npts
)
xstart
Input
The start point of the sweep
xstop
Input
The end point of the sweep
steps
Output
The step array
npts
Input
The number of steps in the sweep
Returns
Output
The valid range status flag:
1 = The
xstart
and
xstop
parameters are valid
0 = Limits cross zero or equal 0.0
Details
This subroutine creates an array of logarithmic-based steps from an input range (
xstart
and
xstop
)
and the number of steps (
npts
). The array of values is returned in the
steps
output parameter.
The logstp subroutine is often used instead of the
sweepi
native-mode subroutine call. The
sweepi
subroutine uses linear-based steps, which should not be used when sweeping current across more
than three decades of current. Many of the bipolar routines that collect beta-I
CE
type data use the
logstp
subroutine to calculate the proper current values to force.
The sweep range cannot cross 0.0.
Negative sweep start and stop points generate an array of negative numbers.
Example
result = logstp(xstart, xstop, &steps, npts)