User Tools

Site Tools


snippets:watchdog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
snippets:watchdog [2013/04/09 15:45] – created basnippets:watchdog [2013/04/09 16:10] ba
Line 5: Line 5:
 Once enabled, the 32bit watchdog timer register gets decremented every clock cycle. Once enabled, the 32bit watchdog timer register gets decremented every clock cycle.
 If the Toggle Watchdog C-Node is executed, the watchdog timer register is reloaded with the value given by the Enable Watchdog C-Node.\\ If the Toggle Watchdog C-Node is executed, the watchdog timer register is reloaded with the value given by the Enable Watchdog C-Node.\\
-If the watchdog timer register reaches zero before it is toggled or stopped the processor is reseted and the flashed program is booted and executed from start.\\  +If the watchdog timer register reaches zero before it is toggled the processor is reseted and the flashed program is booted and executed from start.\\   
 +Typically the "enable watchdog" is executed at program start and "toggle watchdog" is executed in the application main loop once on every iteration.\\ 
 + 
 {{:snippets:watchdog_init.png?direct |}}\\ {{:snippets:watchdog_init.png?direct |}}\\
 {{:snippets:watchdog_reset.png?direct |}}\\ {{:snippets:watchdog_reset.png?direct |}}\\
-{{:snippets:watchdog_stop.png?direct |}}\\+drag and drop this [[VI snippet]] into a LabVIEW block diagram.\\ \\ \\ \\ \\ \\  \\  \\ \\ 
 + 
 + 
 +**notes:** 
 +  * This c-nodes work on any target, but only in compiled mode 
 +  * Once the watchdog is enabled, debugging gets complicatedFor this reason add the watchdog only at the very end of a development cycle 
 +  * If you need to survey several parallel loops, insert the "watchdog_toggle" into one loop and survey the loop counters of the others 
 +  * A reset during a file function can corrupt a file system\\
snippets/watchdog.txt · Last modified: 2017/11/07 22:26 by 127.0.0.1