getting_started:tutorials:controlsystem3
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:controlsystem3 [2017/03/20 13:44] – graf | getting_started:tutorials:controlsystem3 [2019/03/11 10:02] – graf | ||
---|---|---|---|
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 '' | 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. \\ \\ | + | 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. Note that this example doesn' |
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. | 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 | ||
- if you try to write a NaN value to a peripheral output | - if you try to write a NaN value to a peripheral output | ||
+ | |||
+ | The system uses an output. For this reason you will need to install a simple simulator, see [[getting_started: | ||
+ | < | ||
+ | $ ./ | ||
+ | </ | ||
+ | |||
The control system consists of three blocks, a constant block, a gain block, and a peripheral output block. the safety system encompasses three safety levels as show below. | The control system consists of three blocks, a constant block, a gain block, and a peripheral output block. the safety system encompasses three safety levels as show below. | ||
{{ : | {{ : | ||
The system will start in level '' | The system will start in level '' | ||
- | In order to test what happens if you read from an unconnected input comment line number | + | - In order to test what happens if you read from an unconnected input comment line number |
+ | - 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 '' | ||