
Section 3: LPTLib command reference
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
3-60
S530-900-01 Rev. E / September 2017
rangeX
This command selects a range and prevents the selected instrument from autoranging.
Usage
int rangec(int
instr_id
, double
range
);
int rangei(int
instr_id
, double
range
);
int rangev(int
instr_id
, double
range
);
instr_id
The instrument identification code;
SMU
n
,
CMTR
n
,
IMTR
n
,
VMTR
n
,
PSRC
n
range
The value of the highest measurement to be made (the most appropriate range for
this measurement is selected); if
range
is set to 0, the instrument autoranges
Details
Use the
range
X
command to eliminate the time required by automatic range selection on a
measuring instrument. Because the
range
X
command prevents autoranging, an overrange condition
can occur (for example, when measuring 10 V on a 2 V range). The value is returned when this
occurs.
The
range
X
command can also reference a source, because a source-measure unit (SMU) can be
either of the following:
•
Simultaneously a voltage source, voltmeter, and current meter.
•
Simultaneously a current source, current meter, and voltmeter.
The range of a SMU is the same for the source and the measure commands.
When selecting a range below the limit value, whether it is explicitly programmed or the default value,
an instrument temporarily uses the full-scale value of the range as the limit. This does not change the
programmed limit value, and if the instrument range is restored to a value higher than the
programmed limit value, the instrument again uses the programmed limit value.
When changing the instrument range, be careful not to overrange the instrument. For example, a test
initially performed on the 10 mA range with a 5 mA limit is changed to test in the 1 mA range with a
1 mA limit. Notice that the limit is lowered from 5 mA to 1 mA to avoid overranging the 1 mA setting.