getting_started:tutorials:controlsystem3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
getting_started:tutorials:controlsystem3 [2019/02/28 21:40] – graf | getting_started:tutorials:controlsystem3 [2020/11/26 13:12] – ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Control System Containing Various Blocks ====== | ====== Control System Containing Various Blocks ====== | ||
- | In the EEROS library you will find a directory with examples. Open a shell in the build directory of your EEROS library and run '' | ||
- | This examples shows how single blocks can be instantiated. They can be named and their inputs and outputs can be connected to other blocks. The signals in between can be named as well. \\ \\ | ||
- | IMPORTANT The output signals of a newly created block carries a value of NaN (Not a Number). Please note that any block will output a meaningful value only after its run method processes its input values and inner state and finally writes its resulting values to its outputs. | ||
- | \\ | ||
There is another example '' | There is another example '' | ||
- if you forget to connect an input to an output | - if you forget to connect an input to an output | ||
Line 11: | Line 7: | ||
The system uses an output. For this reason you will need to install a simple simulator, see [[getting_started: | The system uses an output. For this reason you will need to install a simple simulator, see [[getting_started: | ||
< | < | ||
- | $ ./ | + | $./ |
</ | </ | ||
Line 19: | Line 15: | ||
- In order to test what happens if you read from an unconnected input comment line number 44 and recompile. This removes the connection between the constant block and the gain block. As soon as the time domain tries to run the gain block a '' | - In order to test what happens if you read from an unconnected input comment line number 44 and recompile. This removes the connection between the constant block and the gain block. As soon as the time domain tries to run the gain block a '' | ||
- Please add line 44 and remove line 39, recompile and run the test. The constant block has no value assigned to it. This causes the time domain to calculate the peripheral output value to be NaN and a '' | - Please add line 44 and remove line 39, recompile and run the test. The constant block has no value assigned to it. This causes the time domain to calculate the peripheral output value to be NaN and a '' | ||
- | |||