getting_started:tutorials:hal2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
getting_started:tutorials:hal2 [2020/12/03 12:05] – removed ursgraf | getting_started:tutorials:hal2 [2024/06/10 17:57] (current) – ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Using the HAL with a Watchdog Timer ====== | ||
+ | In the EEROS library you will find a directory with examples. For this example see [[https:// | ||
+ | The system uses real hardware inputs and output with [[eeros_architecture: | ||
+ | |||
+ | Open a shell in the build directory of your EEROS library and run | ||
+ | < | ||
+ | $ ./halTest3 -c HalTest3ConfigFlink.json | ||
+ | </ | ||
+ | |||
+ | This examples creates a small control system. The state of a peripheral input is mirrored to a peripheral output. The time domain of the control system is checked with a watchdog timer. Omit adding the watchdog block to the time domain (comment line 27 out), recompile the example and observe what is happening. The watchdog timeout is set in the configuration file to 4.5s. The periodic task will once per second printout the state of the watchdog. As soon as the watchdog times out, the safety system will switch to its off state due to the critical input being '' |
getting_started/tutorials/hal2.1606993501.txt.gz · Last modified: 2020/12/03 12:05 by ursgraf