User’s Manual 69
Reads the state of a differential analog input channel and uses the previously set calibration constants to
convert it to volts.
PARAMETERS
channel is the channel number (0, 2, 4, 6):
gaincode is the gain code of 0 to 7:
RETURN VALUE
A voltage value corresponding to the voltage on the analog input channel.
SEE ALSO
brdInit, anaInCalib, anaIn, anaInVolts, anaInmAmps
float anaInDiff(unsigned int channel,
unsigned int gaincode);
Channel
Differential
Input Lines
0 +AIN0 -AIN1
2 +AIN2 -AIN3
4 +AIN4 -AIN5
6 +AIN6 -AIN7
Gain Code Macro Gain
Voltage
Range
0
GAIN_X1
×1 -20 to 20 V
1
GAIN_X2
×2 -10 to 10 V
2
GAIN_X4
×4 -5 to 5 V
3
GAIN_X5
×5 -4 to 4 V
4
GAIN_X8
×8 -2.5 to 2.5 V
5
GAIN_X10
×10 -2 to 2 V
6
GAIN_X16
×16 -1.25 to 1.25 V
7
GAIN_X20
×20 -1 to 1V
Comments to this Manuals