BL4S200 User’s Manual
113
anaInCalib (continued)
gaincode
the gain code of 0 to 7 (use a gain code of 4 for 4–20 mA operation)
value1
the first A/D converter value
volts1
the voltage corresponding to the first A/D converter value
value2
the second A/D converter value
volts2
the voltage corresponding to the second A/D converter value
RETURN VALUE
0 — success.
-EINVAL
— invalid parameter.
-ERR_ANA_CALIB
— error writing calibration constants.
SEE ALSO
brdInit, anaInConfig, anaIn, anaInmAmps, anaInDiff, anaInVolts
Gain Code
Macro
Voltage Range
Single-Ended
Unipolar
Single-Ended
Bipolar
Differential
Bipolar
0
GAIN_X1
0–20 V
±10 V
±20 V
1
GAIN_X2
0–10 V
±5 V
±10 V
2
GAIN_X4
0–5 V
±2.5 V
±5 V
3
GAIN_X5
0–4 V
±2 V
±4 V
4
GAIN_X8
0–2.5 V
±1.25 V
±2.5 V
5
GAIN_X10
0–2 V
±1 V
±2 V
6
GAIN_X16
0–1.25 V
—
±1.25 V
7
GAIN_X20
0–1 V
—
±1 V
electronic components distributor