
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
Section 3: LPTLib command reference
S530-900-01 Rev. E / September 2017
3-89
When multiple calls to the
sweep
X
command are executed in the same test sequence, the
smeas
X
,
sintg
X
, or
savg
X
arrays are loaded sequentially. This appends the measurements from the second
sweep
X
call to the previous results. If the arrays are not dimensioned correctly, access violations
occur. The measurement table remains intact until the
clrscn
or
devint
command is executed.
Defining new test sequences using the
smeas
X
,
sintg
X
, or
savg
X
commands adds commands to
the active measure list. The previous measures are still defined and used. The
clrscn
command is
used to eliminate the previous measures for the second sweep. Using the
smeas
X
,
sintg
X
, or
savg
X
command after a
clrscn
command causes the appropriate new measures to be defined and
used.
When the first sweep point is nonzero, it may be necessary to precharge the circuit so that the
sweep
X
command will return a stable value for the first measured point without penalizing remaining
points in the sweep. For example:
double ires[6];
conpin(SMU1, 10);
conpin(2, GND, 0);
forcev(SMU1, 5.0);
/* Force 5 V to charge. */
delay(10);
/* Wait for precharge. */
smeasi(SMU1, &ires); /* Set up the measurement. */
sweepv(SMU1, 5.0, 10.0, 5, /* Make the real measurement. */
2.5E-3);