Api For Ipac-8000; I8088W_Init - ICP DAS USA I-8088W Api Reference Manual

I/o module
Table of Contents

Advertisement

3. API
FOR I

3.1. i8088W_Init

The function can initialize the I-8088W and then check the hardware ID for each
slot. If the return value is "0" that means there is an I-8088W module in that slot.
If return "-1" that means there is no I-8088W module.
Syntax
short i8088W_Init(int slot);
Parameter
slot: 0 ~ 7
Return Values
Please refer to Error Code Table.
Examples
[C]
int slotIndex,err;
err=i8088W_Init(slotIndex);
if(err==0)
{
Print("There is an I-8088W at slot %d\n",slotIndex);
}
else
{
Print("There is no I-8088W at slot %d\n",slotIndex);
}
I-8088W API Reference Manual, Version 1.0.0, Aug. 2010
PAC-8000
--- 25

Advertisement

Table of Contents
loading

Table of Contents