
Section 3: LPTLib command reference
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
3-8
S530-900-01 Rev. E / September 2017
adelay
This command specifies an array of delay points to use with
asweep
X
command calls.
Usage
int adelay(unsigned int
delaypoints
, double *
delayarray
);
delaypoints
The number of separate delay points defined in the array
delayarray
The name of the array defining the delay points; this is a single-dimension
floating-point array that is
delaypoints
long and contains the individual delay
times; units of the delays are seconds
Details
The delay is specified in units of seconds, with a resolution of 1 ms. The minimum delay is 0 s.
Each delay in the array is added to the delay specified in the
asweep
X
command. For example, if the
array contains four delays (0.04 s, 0.05 s, 0.06 s, and 0.07 s) and the delay specified in the
asweep
X
command is 0.1 s, then the resulting delays are 0.14 s, 0.15 s, 0.16 s, and 0.17 s.
Also see
(on page 3-8)
asweepX
This command generates a waveform based on a user-defined forcing array (logarithmic sweep or other custom
forcing commands).
Usage
int asweepi(int
instr_id
, unsigned int
num_points
, double
delay_time
, double
*
force_array
);
int asweepv(int
instr_id
, unsigned int
num_points
, double
delay_time
, double
*
force_array
);
instr_id
The instrument identification code of the sourcing instrument
num_points
The number of separate current and voltage force points defined in the array
delay_time
The delay, in seconds, between each step and the measurements defined by the
active measure list
force_array
The name of the user-defined force array; this is a single dimension array that
contains all force points
Details
The
asweep
X
command is used with the
smeas
X
,
sintg
X
, or
savg
X
commands.
The
trig
X
l
or
trig
X
g
command can also be used with the
asweep
X
command. However, once a
trigger point is reached, the sourcing device stops moving through the array. The output is held at the
last forced point for the duration of the
asweep
X
command. Data resulting from each step is stored in
an array, as noted above, with
smeas
X
. After the trigger point is reached, measurements are made at
each subsequent point. Results are approximately equal because the source is held at a constant
output.
The
asweepv
and
asweepi
commands are sourcing-type commands. When called, an automatic
limit is imposed on the sourcing device. Refer to the
limit
X
command for additional information.