Moxa DA-685-W7E [22/38] The watchdog control code walkthrough

Moxa DA-685-W7E [22/38] The watchdog control code walkthrough
DA-685 / W7E Customizable Sample Code
5-4
Using this code, any program may be set up so that the watchdog timer will provide a last-line failsafe against
application crashes. For instance, the DA-685 may be set up so that whenever a mission-critical application
fails the watchdog timer will send a message to a system administrator and then initiate an automatic reboot.
To test the watchdog executable, follow the steps below.
The Watchdog Control Code Walkthrough
1. If you haven’t yet, create the folder c:\programs\examples, then copy over Watchdog.exe and run
the script.
2. To keep the system from rebooting, users need to press Enter at least once every 10 seconds, or the
system will reboot automatically.
3. To stop the watchdog, press q to exit the program.

Содержание

Похожие устройства

Скачать