Z-World Fox LP3500 User Manual page 69

C-programmable single-board computer
Table of Contents

Advertisement

int anaInEEWr(unsigned int channel, int opmode
unsigned int gaincode);
Writes the calibration constants, gain, and offset for an input based on its designated channel code posi-
tion from global table _adcCalib. The constants are stored in the the top 1K of the reserved user block
memory area 0x1C00–0x1FFF.
NOTE: This function cannot be run in RAM.
PARAMETER
channel is the analog input channel number (0 to 7) corresponding to AIN0–AIN7.
opmode is the mode of operation:
SINGLE—single-ended input line
DIFF—differential input line
mAMP—milliamp input line
channel
ALLCHAN
gaincode is the gain code of 0 to 7. The gaincode parameter is ignored when channel is ALLCHAN.
RETURN VALUE
0 if successful.
-1 if address is invalid or out of range.
SEE ALSO
anaInEEWr, anaInCalib
User's Manual
SINGLE
0
+AIN0
1
+AIN1
2
+AIN2
3
+AIN3
4
+AIN4
5
+AIN5
6
+AIN6
7
+AIN7
read all channels for selected opmode
Gain Code
0
1
2
3
4
5
6
7
DIFF
mAMP
+AIN0 -AIN1
+AIN0
+AIN1
+AIN2 -AIN3
+AIN2
+AIN3
+AIN4 -AIN5
+AIN6 -AIN7
Voltage
Range
0–20 V
0–10 V
0–5 V
0–4 V
0–2.5 V
0–2 V
0–1.25 V
0–1 V
63

Advertisement

Table of Contents
loading

Related Products for Z-World Fox LP3500

Table of Contents