getting_started:tutorials:controlsystem1
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
getting_started:tutorials:controlsystem1 [2016/10/23 10:29] – created graf | getting_started:tutorials:controlsystem1 [2016/10/24 17:14] – graf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Control System with One Time Domain ====== | ====== Control System with One Time Domain ====== | ||
- | A simple control system consists of a single time domain which has to be run periodically by the excutor. Write your main program as follows. First you have to define | + | In the EEROS library |
- | <code cpp> | + | This examples does: |
- | eeros::Executor & | + | |
- | | + | * Creates a time domain |
- | </code> | + | |
+ | Both harmonic tasks have a periodic counter which measure its periods and run times. Once every 1000th run the results are logged. The results are printed in units of seconds. | ||
+ | Additionally both harmonics have a default monitor function added. This monitor function logs a warning if the measured period differs more than 5%. Depending on your hardware platform and realtime support of your operating system you might get no warnings, several or many warnings. |