getting_started:tutorials:rttest
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| getting_started:tutorials:rttest [2021/03/29 18:20] – ursgraf | getting_started:tutorials:rttest [2026/04/12 12:08] (current) – [Running the Example] ursgraf | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| In the EEROS library you will find a directory with examples. For this example see [[https:// | In the EEROS library you will find a directory with examples. For this example see [[https:// | ||
| + | ==== Allow Realtime Priorities ==== | ||
| + | All examples using the executor will have to change thread priorities to make them realtime capable. You could run these examples with '' | ||
| + | < | ||
| + | your_username | ||
| + | your_username | ||
| + | your_username | ||
| + | your_username | ||
| + | </ | ||
| + | Log out and log back in in order for the changes to take effect. | ||
| + | |||
| + | ==== Running the Example ==== | ||
| Open a shell in the build directory of your EEROS library and run //rtTest//. This examples does: | Open a shell in the build directory of your EEROS library and run //rtTest//. This examples does: | ||
| * Creates a single periodic task with a period of 1ms | * Creates a single periodic task with a period of 1ms | ||
| Line 9: | Line 20: | ||
| You can start the program with the option //-s// passing a number of seconds after which the program stops. | You can start the program with the option //-s// passing a number of seconds after which the program stops. | ||
| < | < | ||
| - | $ sudo ./ | + | $ ./ |
| </ | </ | ||
| - | IMPORTANT You have to run a program using real time threads with root privileges. | ||
| The program will print out the cumulative runtime measurements of | The program will print out the cumulative runtime measurements of | ||
getting_started/tutorials/rttest.1617034827.txt.gz · Last modified: 2021/03/29 18:20 by ursgraf