ICP DAS USA I-7188XA Series User Manual page 130

Hide thumbs Also See for I-7188XA Series:
Table of Contents

Advertisement

int quit=0,k;
InitLib();
if(IsResetByWatchDogTimer()) /*test whether the system has been
Print("reset by WatchDog timer\n\r");
EnableWDT(); /*after callng EnableWDT, Refresh WDT must be called
while(!quit){
if(Kbhit()) {
k=Getch();
if(k=='q') {
Print("quit the program\r\n");
quit=1; /*quit the program*/
}
else {
Print("more than 0.8s has elapsed reset the system\r\n");
Delay(1000); /*There has been a delay for more than 0.8s. Reset
the system*/
}
}
RefreshWDT(); /*Refresh WDT must be called within 0.8s*/
Print("call Refresh WDT\n\r");
}
DisableWDT(); /*Disable the WDT. The system will refresh the WDT*/
Print("Call DisableWDT\n\r");
}
 DisableWDT()
Function:
Disables the WatchDog timer.
Syntax:
void DisableWDT(void);
Header:
#include "7188xa.h"
Description: See the description for EnableSDT().
Example:
Please refer to "EnableWDT()" function for more detailed
information.
 RefreshWDT()
Function:
Refreshes the WatchDog timer.
Syntax:
void RefreshWDT(void);
Header:
#include "7188xa.h"
Description: See the description for EnableSDT().
Example:
Please refer to "EnableWDT()" function for more detailed
I-7188XA Series User's Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
within 0.8s*/
reset by the WDT*/
130

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7188xaI-7188xbI-7188xcI-7188I-7188xadI-7188xbd ... Show all

Table of Contents