
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
Section 2: Linear Parametric Test Library
S530-900-01 Rev. E / September 2017
2-5
To make new connections or remove connections in the middle of a test sequence, use the
addcon
and
delcon
commands. These commands do not clear the matrix like the
conpin
command does.
To prevent damage to matrix relays, all switching is done with sources off. The
addcon
,
delcon
, and
clrcon
commands internally call the
devclr
command before opening or closing any relays. The
devint
command does not directly call the
devclr
command as described in the sourcing section
above. It calls the
clrcon
command, which then calls the
devclr
command as part of its normal
processing.
Sweeping
The Linear Parametric Test Library (LPTLib) can automatically perform multiparameter sweeps.
Sweeps are more efficient than programmatically changing the source value on an instrument and
performing a set of individual measurements.
To set up a sweep, use the
smeas
X
,
sintg
X
, and
savg
X
commands to populate a measurement
scan table. Each call to one of these commands adds an entry to the table. You can then use the
sweep
X
command to step a source through a range of source values. At each step, a measurement
is made for each entry in the measurement scan table.
Before sweeping the source, the source range is automatically set to the range appropriate for the
largest source value in the sweep. This prevents a source range change in the middle of the sweep.
When ranging, the absolute value of the source value is used to determine range. For example, if a
voltage source is swept from –10 V to +0.5 V, the range appropriate for ±10 V (the 10 V range) is
used.
After the sweep has completed, the measurement scan table is not cleared. If another sweep is
performed, more measurements are made for each entry in the measurement scan table. The new
data is appended to the data from previous sweeps.
Calling the
smeas
X
,
sintg
X
, or
savg
X
command does not clear the measurement scan table. The
new entries are added to the existing measurement scan table. The measurement scan table is
automatically cleared when the
devint
command is called, but it can be explicitly cleared by calling
the
clrscn
command.