This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
snippets:watchdog [2013/04/09 15:45] – created ba | snippets: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 | + | 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 " | ||
+ | |||
{{: | {{: | ||
{{: | {{: | ||
- | {{: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 complicated. For this reason add the watchdog only at the very end of a development cycle | ||
+ | * If you need to survey several parallel loops, insert the " | ||
+ | * A reset during a file function can corrupt a file system\\ |