eeros_architecture:control_system:available_blocks:checker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
eeros_architecture:control_system:available_blocks:checker [2018/04/29 20:23] – graf | eeros_architecture:control_system:available_blocks:checker [2021/05/16 14:26] – ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Signal Checker ====== | ====== Signal Checker ====== | ||
- | A signal checker block serves to check a signal of the control system to be within a given range. As soon as this is longer the case the block will trigger a safety event which can cause the safety system to change its level and handle the situation appropriately. See [[getting_started: | + | A signal checker block serves to check a signal of the control system to be within a given range. As soon as this is longer the case the block will trigger a safety event which can cause the safety system to change its level and handle the situation appropriately. See [[getting_started: |
Please keep in mind that for signals which are of vector or matrix type, each element will be compared to its own upper and lower limit. \\ | Please keep in mind that for signals which are of vector or matrix type, each element will be compared to its own upper and lower limit. \\ | ||
When the checker has reached his limit it will fire a safety event exactly once. The safety system then will have to reset the checker by calling | When the checker has reached his limit it will fire a safety event exactly once. The safety system then will have to reset the checker by calling | ||
<code cpp> | <code cpp> | ||
- | checker.reset(); | + | reset(); |
</ | </ | ||
This will allow a new safety event to be triggered. In case of a matrix type, the checker will fire as soon as at least one of its elements has exceeded its limits. \\ | This will allow a new safety event to be triggered. In case of a matrix type, the checker will fire as soon as at least one of its elements has exceeded its limits. \\ | ||
However, the checker will only fire an event if the safety system and an appropriate event have been registered beforehand by calling | However, the checker will only fire an event if the safety system and an appropriate event have been registered beforehand by calling | ||
<code cpp> | <code cpp> | ||
- | checker.registerSafetyEvent(safetySystem, | + | registerSafetyEvent(safetySystem, |
</ | </ | ||
By calling | By calling | ||
<code cpp> | <code cpp> | ||
- | checker.setActiveLevel(safetyLevel); | + | setActiveLevel(safetyLevel); |
</ | </ | ||
the checker will only fire a registered safety event if the current safety level is equal or greater than the safety level set by this method. | the checker will only fire a registered safety event if the current safety level is equal or greater than the safety level set by this method. |
eeros_architecture/control_system/available_blocks/checker.txt · Last modified: 2021/07/09 14:36 by ursgraf