S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual Section 3:
S530-900-01 Rev. E / September 2017 3-89
When multiple calls to the sweepX command are executed in the same test sequence, the smeasX,
sintgX, or savgX arrays are loaded sequentially. This appends the measurements from the second
sweepX 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 smeasX, sintgX, or savgX 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 smeasX, sintgX, or
savgX 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
sweepX 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);