User Tools

Site Tools


getting_started:tutorials:blocks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
getting_started:tutorials:blocks [2020/11/26 13:07] – created ursgrafgetting_started:tutorials:blocks [2021/03/29 18:23] (current) ursgraf
Line 1: Line 1:
 ====== Using Blocks ====== ====== Using 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 ''examples/controlsystem/BlockTest1''+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't include a control system nor an executor which runs the blocks. The blocks are run by calling their run methods manually.\\ \\ +
-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.+
  
-\\ +In the EEROS library you will find a directory with examples. For this example see [[https://github.com/eeros-project/eeros-framework/blob/master/examples/block/BlockTest.cpp|BlockTest.cpp]].  
-There is another example ''examples/controlsystem/BlockTest2''This example encompasses safety system and a control system. It demonstrates what happens ..+ 
-  - if you forget to connect an input to an output  +Open shell in the build directory of your EEROS library and run  
-  - if you try to write NaN value to peripheral output+<code> 
 +$ ./examples/block/blockTest 
 +</code> 
 + 
 + Note that this example doesn't include a control system nor an executor which runs the blocksThe blocks are run by calling their run methods manually.\\ \\ 
 +IMPORTANT The output signals of a newly created block carries a value of NaN (Not 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.
  
  
getting_started/tutorials/blocks.1606392451.txt.gz · Last modified: 2020/11/26 13:07 by ursgraf