User Tools

Site Tools


getting_started:tutorials:hal0

This is an old revision of the document!


Using the HAL with the Simulator

In the EEROS library you will find a directory with examples. Open a shell in the build directory of your EEROS library and run examples/hal/halTest1. The system uses inputs and output. For this reason you will need to install a simple simulator, see simulator. The following command will run the example

$ ./halTest1 -c HalTest1Config.json

This examples does:

  • Creates a main task ss with an execution period of five milliseconds. The task itself is defined of type Lambda with a run method given by an empty lambda function.
  • Creates a time domain t1 with a period of five milliseconds.

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.

getting_started/tutorials/hal0.1493299265.txt.gz · Last modified: 2017/04/27 15:21 (external edit)