getting_started:tutorials:controlsystem4
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
getting_started:tutorials:controlsystem4 [2017/04/06 19:26] – external edit 127.0.0.1 | getting_started:tutorials:controlsystem4 [2020/11/26 15:44] – ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Control System Containing Switch Blocks ====== | ====== Control System Containing Switch Blocks ====== | ||
+ | There is another example '' | ||
+ | - if you forget to connect an input to an 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 system will start in level '' | ||
+ | - 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 '' | ||
+ | |||
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 '' | ||
A constant value is added up by the integrator block. The switch is configured to automatically switch to the second input as soon as the input value reaches 1.5 ± 0.1. | A constant value is added up by the integrator block. The switch is configured to automatically switch to the second input as soon as the input value reaches 1.5 ± 0.1. |