Section 13: LPT library function reference
Model 4200A-SCS Parameter Analyzer Reference Manual
13-62
4200A-901-01 Rev. C / February 2017
avgX
This command makes a series of measurements and averages the results.
Usage
int avgi(int
instr_id
, double *
result
, long
stepno
, double
steptime
);
int avgv(int
instr_id
, double *
result
, long
stepno
, double
steptime
);
instr_id
The instrument identification code of the measuring instrument
result
The variable assigned the result of the measurement
stepno
The number of steps averaged in the measurement (1 to 32,767)
steptime
The interval in seconds between each measurement; the minimum practical time is
approximately 2.5 ms
Details
The
avg
X
command is used primarily to get measurements when:
•
The device under test (DUT) being tested acts in an unstable manner.
•
Electrical interference is higher than can be tolerated if the
meas
X
command were to be used.
The programmer specifies the number of samples and the duration between each sample.
After this command executes, all closed relay matrix connections remain closed and the sources
continue to generate voltage or current. This allows additional sequential measurements.
In general, measurement commands that return multiple results are more efficient than performing
multiple measurement commands.
The
range
X
command directly affects the operation of the
avg
X
command. The use of the
range
X
command prevents the addressed instrument from automatically changing ranges. This can result in
an overrange condition similar to what would occur when measuring 10.0 V on a 4.0 V range. An
overrange condition returns the value 1.0E+22 as the result of the measurement.
If the
range
X
command is not in the test sequence before the
avg
X
call, the measurements
performed automatically select the optimum range.
Compliance limits
: A compliance limit setting goes into effect when the SMU is on a measure range
that can accommodate the limit value. For manual ranging, the
range
X
command is used to select
the range. For autoranging, the
avgi
or
avgv
commands triggers a needed range change before the
(on page 3-3) for details.