Section 13: LPT library function reference
Model 4200A-SCS Parameter Analyzer Reference Manual
13-42
4200A-901-01 Rev. C / February 2017
setmode
This command sets instrument-specific operating mode parameters.
Usage
int setmode(int
instr_id
, long
modifier
, double
value
);
instr_id
The instrument identification code of the instrument being operated on
modifier
The instrument-specific operating characteristic to change; see
Details
value
Value to set the operating parameter to
Details
The
setmode
command allows you to control certain instrument-specific operating characteristics.
A special instrument ID named
KI_SYSTEM
is used to set operating characteristics of the system.
The following table describes
setmode
modifier
parameters that are supported for
KI_SYSTEM
.
modifier
value
Comment
KI_TRIGMODE
KI_MEASX
KI_INTEGRATE
KI_AVERAGE
KI_ABSOLUTE
KI_NORMAL
Redefines all existing triggers to use a new
method of measurement.
KI_AVGNUMBER
<
value
>
Number of readings to make when
KI_TRIGMODE
is set to
KI_AVERAGE
.
KI_AVGTIME
<
value
>
(in units of seconds)
Time between readings when
KI_TRIGMODE
is
set to
KI_AVERAGE
.
The following
KI_SYSTEM
modifier
parameters are accepted, but do no operations in the 4200A-
SCS. They are included for compatibility so that existing S530 or S600 programs that use
setmode
can be ported to the 4200A-SCS without generating errors.
•
KI_MX_DEFMODE
•
KI_HICURRENT
•
KI_CC_AUTO
•
KI_CC_SRC_DLY
•
KI_CC_COMP_DLY
•
KI_CC_MEAS_DLY