Rabbit RabbitCore RCM4200 User Manual page 72

C-programmable analog core module with serial flash and etherne
Table of Contents

Advertisement

float anaInmAmps(unsigned int channel);
DESCRIPTION
Reads the state of an analog input channel and uses the previously set calibration con-
stants to convert it to current.
PARAMETERS
channel
RETURN VALUE
A current value between 4.00 and 20.00 mA corresponding to the current on the analog
input channel.
ADTIMEOUT (-4095) if the conversion is incomplete or busy bit timeout.
ADOVERFLOW (-4096) for overflow or out of range.
SEE ALSO
anaInCalib, anaIn, anaInVolts
66
anaInmAmps
the channel number (0 to 7) corresponding to LN0 to LN7.
Channel Code
0
1
2
3
4
5
6
7
* Negative input is ground.
† Applies to Prototyping Board.
4–20 mA
*
Input Lines
+AIN0
+AIN1
+AIN2
+AIN3
+AIN4*
+AIN5*
+AIN6*
+AIN7
RabbitCore RCM4200

Advertisement

Table of Contents
loading

Table of Contents