User Tools

Site Tools


tools:wdt

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
tools:wdt [2024/06/10 17:03] – [Using an External Watchdog] ursgraftools:wdt [2024/06/10 17:24] (current) – [Using an Watchdog through the HAL] ursgraf
Line 10: Line 10:
  
 ===== Using an Watchdog through the HAL ===== ===== Using an Watchdog through the HAL =====
 +Some HAL libraries implement a watchdog device, e.g. [[getting_started:install_wrapper#flink|flink]]. When going through the HAL, you can use the [[eeros_architecture:control_system:available_blocks:watchdog|]] block. Such a block runs within the time domain of your control system and periodically resets the timer. The timer must be configured within the configuration file (see [[eeros_architecture:hal:configuration_file|]]. This could be done for example as follows 
 +<code> 
 +"subdevice5":
 +  "type": "Watchdog", 
 +  "channel0":
 +    "signalId": "Wdt", 
 +    "additionalArguments": "0.05" 
 +   } 
 +
 +</code> 
 +Here, the watchdog timeout is set to 50ms. You have to start the timer, which is called ''arming'' as soon as your time domain starts running.  
 +<code> 
 +wdt.arm(); 
 +</code> 
 +The watchdog block in your control system defines a peripheral input. Check for the state of this input with a critical input in your safety system, see [[getting_started:tutorials:hal2|]].
tools/wdt.1718031825.txt.gz · Last modified: 2024/06/10 17:03 by ursgraf