
IRU151-I Programmer Guidel
Function Description
37
2.28 GetDICounterEx
Description
Get the DI counter number.
Definition
int GetDICounterEx (int channel, int *data)
Parameters
channel
[in]: The channel index. (Bit0-7 indicates channel 0-7)
data
[out]: The current data of DI counter.
Return value
AXIO_OK if success, or other value represents the error. (See Error Code)
Example
int
ret = 0;
int
counts = 0;
ret = GetDICounterEx(0x01, &counts);
if(ret == AXIO_OK)
{
printf(“Current counts = %d\n”, counts);
}
else
{
printf(“Get DI counter failure.”);
}
Содержание IRU151-I
Страница 1: ...IRU151 I Software Development Kit Reference Manual...
Страница 2: ...ii Revision History Version Revised Date Author Description 1 0 2018 12 05 Hank 1st release...
Страница 6: ...vi This page is intentionally left blank...
Страница 10: ...IRU151 I Programmer Guidel 4 Introduction if stop 2 break Close_Device...
Страница 11: ...IRU151 I Programmer Guidel Introduction 5 1 3 The Calibration Flow Chart...
Страница 12: ...IRU151 I Programmer Guidel 6 Introduction This page is intentionally left blank...