User Tools

Site Tools


getting_started:tutorials:blocks

Using Blocks

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.

In the EEROS library you will find a directory with examples. For this example see BlockTest.cpp.

Open a shell in the build directory of your EEROS library and run

$ ./examples/block/blockTest

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.

getting_started/tutorials/blocks.txt · Last modified: 2021/03/29 18:23 by ursgraf