I8014W_Readfifo - 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_ReadFIFO

This function is used to read data from FIFO after Magic Scan triggered. If the data in
FIFO is less than argument readCount, the function will read back all the data and
return immediately, you need to call this function again and reset argument hexData []
and readCount, till all the data required is obtained and then stop the Magic Scan.
Prototype
For MiniOS7
short i804W_ReadFIFO
(
int slot, short hexData[], short readCount,
short* dataCountFromFIFO
);
For Windows (CE and WES)
short pac_i8014W_ReadFIFO
(
int slot, short hexData[], short readCount,
short* dataCountFromFIFO
);
Parameter
Slot: 0 ~ 7
hexData []: the start address of data array to store data read back with
hexadecimal format
readCount: the count of data required
* dataCountFromFIFO:
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
[Output]
the count of data read back in this process.
Error code list, page 55.
75

Advertisement

Table of Contents
loading

Table of Contents