Z-World Wolf BL2600 User Manual page 60

C-programmable single-board computer with ethernet
Table of Contents

Advertisement

float anaInDiff(int channel, int gaincode);
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
Gain Code
0
1
2
3
4
5
6
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
56
Differential Inputs
channel
0
+AIN0 -AIN1
2
+AIN2 -AIN3
4
+AIN4 -AIN5
6
+AIN6 -AIN7
Macro
Actual Gain
GAIN_X1
GAIN_X2
GAIN_X4
GAIN_X5
GAIN_X8
×10
GAIN_X10
×16
GAIN_X16
×20
GAIN_X20
Differential
Voltage Range
×1
± 20 V
×2
± 10 V
×4
± 5 V
×5
± 4 V
×8
± 2.5 V
± 2 V
± 1.25 V
± 1 V
Wolf (BL2600)

Advertisement

Table of Contents
loading

Related Products for Z-World Wolf BL2600

Table of Contents