I-8014W API User Manual, v1.0.1, June 2011
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
66
i8014W_ReadAI
This function is used to read a floating point input (calibrated) from one specified
channel.
Prototype
For MiniOS7
short i8014W_ReadAI( int slot, int ch, int gain, float* fVal );
For Windows (CE and WES)
short pac_i8014W_ReadAI( int slot, short ch, short gain, float* fVal );
Parameter
slot: 0 ~ 7
ch: 0 ~ 7 for differential input, or 0 ~ 15 for single-ended input
gain: 0 ~ 4, sets the input range:
0:
+/-10 V,
1:
+/-5 V,
2:
+/-2.5 V,
3:
+/-1.25 V,
4:
+/-20 mA
*fVal: [Output] the floating-point data
Return
0 = No Error
For other returned value, see
Error code list, page 55.