User Tools

Site Tools


getting_started:tutorials:sequencer3

Example with several Monitors

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/sequencer/SequencerTest4.

Flow of SequencerTest4

This example shows a sequence with two associated monitors. The Main Sequence tries to run several steps called Step A. Each step increments a counter. A monitor checks for this count to reach a given level (MyMonitor). As soon as this happens an exception sequence is started. After termination of the exception sequence the original sequence resumes because the monitor property is set to resume. The Main Sequence continues and is soon interrupted by its timeout monitor because its timeout limit has expired. The timeout monitor has no exception sequence assigned to it and immediately aborts the Main Sequence and with it the application because its monitor property is set to abort.


A next example demonstrates what happens if the same monitor checks two sequences. It can be found in examples/sequencer/SequencerTest5.

Flow of SequencerTest5

The Main Sequence and Sequence B have the same monitor. The Main Sequence tries to run several steps called Step A. Each step increments a counter. A monitor checks for this count to reach a given level (MyMonitor). The same monitor also checks Sequence B, which runs in parallel. As soon as the monitor condition is met, both sequences will abort because the monitor property is set to abort.

getting_started/tutorials/sequencer3.txt · Last modified: 2018/01/18 09:35 by graf