I8014W_Readai - 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_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
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.
66

Advertisement

Table of Contents
loading

Table of Contents