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