S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual Section 3:
S530-900-01 Rev. E / September 2017 3-45
measX
This command allows the measurement of voltage, current, charge capacitance, or conductance.
Usage
int measc(int instr_id, double *result);
int meascg(int instr_id, double *c, double *g);
int measg(int instr_id, double *result);
int measi(int instr_id, double *result);
int measv(int instr_id, double *result);
The variable assigned to the capacitance of the measurement
The variable assigned to the conductance of the measurement
Details
After the command is called, all relay matrix connections remain closed, and the sources continue to
generate voltage or current. For this reason, two or more measurements can be made in sequence.
The rangeX command directly affects the operation of the measX command. Using the rangeX
command prevents the instrument addressed from automatically changing ranges when the measX
command is called. This can result in an overrange condition such that would occur when measuring
10 V on a 2 V range. An overrange condition returns the value as the result of the measurement.
If used, the rangeX command must be in the test sequence before the associated measX command.
All measurements except the meast command invoke a timer snapshot measurement to be made by
all enabled timers. This timer snapshot can then be read with the meast command.
In general, measurement functions that return multiple results are more efficient than performing
multiple measurement functions. For example, calling a single meascg command is faster than calling
the measc command followed by the measg command.