User Tools

Site Tools


eeros_architecture:control_system:time_domains

This is an old revision of the document!


Time domains

Time domains comprise blocks which run with the same periodicity. Each time such a time domain executes everyone of its blocks runs in a predetermined way. A control system may have one or several time domains running with different periods.

Signal flow for a 1 ms filtered input into a 5 ms loop

A time domain must be defined as follows:

  eeros::control::TimeDomain td("td1", 0.01, true);

The last parameter which is of type boolean indicates whether the time domain has to be run in realtime. After creation you can add blocks to it. Please make sure to add these blocks in the order in which they must be executed. Currently, no reordering of those blocks is done.

  td.addBlock(&const1);
  td.addBlock(&gain1);
  ...

Finally, you have to add the time domain to the executor, refer to Executor.

Time Stamps

Each signals's value will be marked with a timestamp, indicating the exact time corresponding to the value of the represented physical quantity. This is for instance when the value was captured or generated.

The timestamp can be changed by blocks, if the algorithm influences the time base of the signal. This is typically the case in differentiation, integration or filtering.

The timestamp is needed for instance for operations performed between signals, which generally are not correct if the values don’t base on the same point in time. It also can be used for compensating any jitter or dead times.

Execution of Time Domains

Generally, time domains have to be executed with their periods having a fixed relationship, so called harmonic tasks. Please refer to Executor for further details.

Catching Faults in Time Domains

Time domains are responsible to run their blocks in a

eeros_architecture/control_system/time_domains.1490018214.txt.gz · Last modified: 2017/03/20 14:56 by graf