56
Wolf (BL2600)
Reads the state of a differential A/D converter input channel and uses the previously set calibration con-
stants to convert it to volts. If the gain code for a given channel has changed from the previous cycle, the
EEPROM will be read to get the calibration constants for the new gain value.
PARAMETER
channel
is the analog input channel number (0, 2, 4, 6) as shown below
gaincode
is the gain code of 0 to 7
RETURN VALUE
A voltage value corresponding to the voltage on the analog input channel. A value of -4096 indicates an
overflow or out-of-range condition.
SEE ALSO
brdInit, anaInConfig, anaIn, anaInmAmps, anaInVolts, anaInCalib
float anaInDiff(int channel, int gaincode);
channel
Differential Inputs
0
+AIN0 -AIN1
2
+AIN2 -AIN3
4
+AIN4 -AIN5
6
+AIN6 -AIN7
Gain Code
Macro
Actual Gain
Differential
Voltage Range
0
GAIN_X1
×1
± 20 V
1
GAIN_X2
×2
± 10 V
2
GAIN_X4
×4
± 5 V
3
GAIN_X5
×5
± 4 V
4
GAIN_X8
×8
± 2.5 V
5
GAIN_X10
×10
± 2 V
6
GAIN_X16
×16
± 1.25 V
7
GAIN_X20
×20
± 1 V
Содержание Wolf BL2600
Страница 1: ...Wolf BL2600 C Programmable Single Board Computer with Ethernet User s Manual 019 0142 040731 B ...
Страница 36: ...32 Wolf BL2600 ...
Страница 66: ...62 Wolf BL2600 ...
Страница 100: ...96 Wolf BL2600 ...
Страница 104: ...100 Wolf BL2600 ...
Страница 106: ......