User Tools

Site Tools


getting_started:tutorials:system1

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
getting_started:tutorials:system1 [2020/12/03 08:26] ursgrafgetting_started:tutorials:system1 [2021/03/30 13:46] – [Simple System with Control and Safety System] ursgraf
Line 1: Line 1:
 ====== Simple System with Control and Safety System ====== ====== Simple System with Control and Safety System ======
-It is time to study a basic system consisting of a control system and a safety system. The control system encompasses a few blocks and one of their signals will be written to an output. As we do not have any real output we will use a simulator, see [[getting_started:install_wrapper#simulator|]]. Please build and install it. Further, you have to make sure that your example application is able to find the simulator library, see [[getting_started:deploy|]].\\ +It is time to study a basic system consisting of a control system and a safety system. The control system in this example encompasses a few blocks and one of their signals will be written to an output. As we do not have any real output we will use a simulator, see [[getting_started:install_wrapper#simulator|Simulator]]. Please build and install it. Further, you have to make sure that your example application is able to find the simulator library, see [[getting_started:deploy|]]. 
-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. For this example see [[https://github.com/eeros-project/eeros-framework/blob/master/examples/system/SystemTest1.cpp|SystemTest1.cpp]].  
 + 
 +Open a shell in the build directory of your EEROS library and run 
 <code> <code>
-$ sudo ./examples/system/systemTest1 -c examples/system/SystemTest1Config.json+$ sudo LD_LIBRARY_PATH=/home/you/work/project/install-x86/lib/ ./examples/system/systemTest1 -c examples/system/SystemTest1Config.json
 </code> </code>
-IMPORTANT You have to run a program using real time threads with root privileges. +IMPORTANT You have to run a program using real time threads with root privileges and you have to set your library path so that the simulator library can be found, see [[getting_started:deploy:deploy_host|]]
  
 This example encompasses a safety system and a control system. The control system has one time domain running several blocks This example encompasses a safety system and a control system. The control system has one time domain running several blocks
-[{{ :getting_started:tutorials:systemtest1.png?500 |//Control system of the example//}}]+[{{ :getting_started:tutorials:systemtest1.png?300 |//Control system of the example//}}]
 A constant value is amplified by a gain block and added up by the integrator block. The switch is configured to automatically switch to the second input as soon as the input value reaches 20.0 ± 0.1. The signal after the switch block is finally output onto a peripheral output block.\\ A constant value is amplified by a gain block and added up by the integrator block. The switch is configured to automatically switch to the second input as soon as the input value reaches 20.0 ± 0.1. The signal after the switch block is finally output onto a peripheral output block.\\
  
getting_started/tutorials/system1.txt · Last modified: 2021/03/30 13:47 by ursgraf