User Tools

Site Tools


snippets:watchdog

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
snippets:watchdog [2013/04/09 15:47] basnippets:watchdog [2013/04/09 16:32] ba
Line 6: Line 6:
 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 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.\\  
-{{:snippets:watchdog_init.png?direct |}}\\ +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_reset.png?direct |}}\\ + 
-drag and drop this [[VI snippet]] into a LabVIEW block diagram.\\+
 +{{:snippets:watchdog_init.png?direct|}}\\ drag and drop this [[VI snippet]] into a LabVIEW block diagram.\\ 
 +{{:snippets:watchdog_reset.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 "watchdog_toggle" into one loop and survey the loop counters of the others 
 +  * A reset during a file function can corrupt a file system 
 +  * When inserting the in line C-nodes the following warnings are generated.\\ This warning can be ignored, because it is about a disabled part of the block diagram. {{:snippets:errorsnwarnings:inline_c_node_not_supported.png?direct|}} 
  
snippets/watchdog.txt · Last modified: 2017/11/07 22:26 by 127.0.0.1