3: LPTLib command reference S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
3-34 S530-900-01 Rev. E / September 2017
intgX
This command performs voltage or current measurements averaged over a user-defined period (usually, one AC
line cycle).
Usage
int intgc(int instr_id, double *result);
int intgcg(int instr_id, double *capacitance, double *conductance);
int intgg(int instr_id, double *result);
int intgi(int instr_id, double *result);
int intgv(int instr_id, double *result);
The instrument identification code of the measuring instrument;
n,
n
The variable assigned to the result of the measurement
The variable assigned the capacitance measurement
The variable assigned the conductance measurement
Details
The averaging is done in hardware by integration of the analog measurement signal over a specified
period of time. The integration is automatically corrected for 50 Hz or 60 Hz power mains.
The default integration time is one AC line cycle (1 PLC). This default time can be overridden with the
KI_INTGPLC option of setmode. The integration time can be set from 0.01 PLC to 10.0 PLC. T
he
devint command resets the integration time to the one AC line cycle default value.
The rangeX command directly affects the operation of the intgX command. The use of the rangeX
command prevents the instrument addressed from automatically changing ranges. This can result in
an overrange condition that would occur when measuring 10.0 V on a 2.0 V range. An overrange
condition returns the value as the measurement result.
If used, the rangeX command must be in the test sequence before the associated intgX command.
In general, measurement commands that return multiple results are more efficient than performing
multiple measurement commands. For example, performing a single call to the intgcg command is
faster than calling the intgc command followed by the intgg command.