Contec F&eIT Series User Manual page 74

Isolated counter module
Hide thumbs Also See for F&eIT Series:
Table of Contents

Advertisement

/* Read 'Error Status' */
dwVaBase = FIT_IO + FIT_IO_DEVICE_INFOR;
wStatus = FIT_Read(hHandle, dwVaBase + dwVaOffset +
FIT_ERROR_STATUS, 1, &byErrorStatus);
if (wStatus != 0) {
}
if (byErrorStatus != 0x00) {
byErrorStatus);
}
/* Read 'Counter Data' */
dwVaBase = FIT_IO + FIT_IO_INPUT;
printf("- Hit Any Key:Stop -\n");
while (!kbhit()) {
dwVaChOffset, 8, (BYTE *)&byData[0]);
}
/* Close */
FIT_Close(hHandle);
return 0;
}
CNT24-2(FIT)GY
printf("Error! FIT_Read = %04X(H)\n", wStatus);
FIT_Close(hHandle);
return 1;
printf("Error! Error Status = %02X(H)\n",
FIT_Close(hHandle);
return 1;
wStatus = FIT_Read(hHandle, dwVaBase + dwVaOffset +
if (wStatus != 0) {
printf("Error! FIT_Read = %04X(H)\n", wStatus);
}
printf("Counter CH%d Data:%02X%02X%02X%02X\r",
FIT_SAMPLE_CH, byData[3], byData[2], byData[1], byData[0]);
Using the Memory Address Map
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cnt24-2(fit)gy

Table of Contents