I8014W_Readaihex - ICP DAS USA I-8014W User Manual

250 ks/s, 16-bit, 8-channel differential/16-channel single-ended analog input module
Table of Contents

Advertisement

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
I-8014W API User Manual, v1.0.1, June 2011
Copyright © 2011 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com
Error code list, page 55.
68

Advertisement

Table of Contents
loading

Table of Contents