getting_started:tutorials:sequencer3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
getting_started:tutorials:sequencer3 [2020/12/03 17:55] – [Main Sequence Calls Nonblocking Sequence] ursgraf | getting_started:tutorials:sequencer3 [2021/03/31 15:38] – [Main Sequence Has Timeout Monitor With Restart] ursgraf | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Main Sequence Calls Nonblocking Sequence ===== | ===== Main Sequence Calls Nonblocking Sequence ===== | ||
- | In the EEROS library you will find a directory with examples. Open a shell in the build directory of your EEROS library and run | + | In the EEROS library you will find a directory with examples. |
+ | |||
+ | Open a shell in the build directory of your EEROS library and run | ||
< | < | ||
$ ./ | $ ./ | ||
Line 27: | Line 29: | ||
At the end of the method you have to wait for the subsequence as it runs in its own thread. | At the end of the method you have to wait for the subsequence as it runs in its own thread. | ||
- | ====== Example with several Monitors ====== | + | ===== Main Sequence Has Timeout Monitor |
- | it will run in parallel. '' | + | The next example |
+ | < | ||
+ | $ examples/ | ||
+ | </ | ||
- | [{{ .: | + | The main sequence does three steps and starts the second sequence. The timeout monitor |
- | The main sequences starts with three '' | + | [{{ : |
+ | \\ | ||
+ | ===== Main Sequence Has Timeout Monitor With Resume ===== | ||
- | ===== Sequence with two Monitors ===== | + | The next example is [[https:// |
+ | < | ||
+ | $ examples/ | ||
+ | </ | ||
- | In the EEROS library you will find a directory with examples. Open a shell in the build directory | + | The main sequence does three steps and starts |
- | [{{ .:sequencerexample4.png?450 | //Flow of SequencerTest4// }}] | + | [{{ :getting_started: |
+ | \\ | ||
- | This example shows a sequence with two associated monitors. The '' | + | ===== Main Sequence |
- | ==== Altering the Monitor Behavior ==== | + | The next example is [[https:// |
- | Change the behavior of '' | + | < |
- | If you change | + | $ examples/ |
+ | </ | ||
- | ===== Monitor Checking two Sequences ===== | + | The main sequence does three steps and starts the second sequence. The timeout monitor of the main sequence fires while the second sequence still runs. The monitor causes an exception sequence to run. After that the main sequence starts again as the timeout behavior is set to '' |
- | A next example demonstrates what happens if the same monitor checks two sequences. It can be found in '' | + | [{{ : |
+ | \\ | ||
- | [{{ .:sequencerexample5.png?550 | //Flow of SequencerTest5// }}] | + | ===== Subsequence Has Timeout Monitor ===== |
+ | |||
+ | A next example demonstrates what happens if the subsequence is interrupted by a monitor while being called from the main sequence. Run | ||
+ | < | ||
+ | $ examples/ | ||
+ | </ | ||
+ | |||
+ | The main sequence does three steps and starts the second sequence. The timeout monitor of the subsequence fires. The monitor causes an exception sequence to run. After that the subsequence terminates immediately as the timeout behavior is set to '' | ||
+ | |||
+ | [{{ : | ||
+ | \\ | ||
+ | |||
+ | ===== Subsequence Has Timeout Monitor With Resume ===== | ||
+ | |||
+ | A next example demonstrates what happens if the subsequence is interrupted by a monitor while being called from the main sequence. Run | ||
+ | < | ||
+ | $ examples/ | ||
+ | </ | ||
+ | |||
+ | The main sequence does three steps and starts the second sequence. The timeout monitor of the subsequence fires. The monitor causes an exception sequence to run. After that the subsequence continues from where it was interrupted as the timeout behavior is set to '' | ||
+ | |||
+ | [{{ :getting_started: | ||
+ | \\ | ||
+ | |||
+ | ===== Subsequence Has Timeout Monitor With Restart ===== | ||
+ | |||
+ | A next example demonstrates what happens if the subsequence is interrupted by a monitor while being called from the main sequence. Run | ||
+ | < | ||
+ | $ examples/ | ||
+ | </ | ||
+ | |||
+ | The main sequence does three steps and starts the second sequence. The timeout monitor | ||
+ | |||
+ | [{{ : | ||
+ | \\ | ||
- | The '' | ||
getting_started/tutorials/sequencer3.txt · Last modified: 2021/03/31 15:39 by ursgraf