User Tools

Site Tools


getting_started:tutorials:controlsystem5

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
getting_started:tutorials:controlsystem5 [2017/08/09 07:33] – created grafgetting_started:tutorials:controlsystem5 [2017/09/01 12:11] graf
Line 1: Line 1:
 ====== Control System with Remote Connection ====== ====== Control System with Remote Connection ======
-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/socket/eerosServer/socketServerExample''\\ +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/socket/eerosServer/socketServerExample''Open a second terminal and run ''examples/socket/standaloneClient/standaloneClient'' As soon as the connection is established the socket data block periodically sends its input signal of type ''Vector4''. The transmission speed is given by the period of the time domain the socket data block is assigned toThe stand alone client prints these values ten times per second.\\ 
-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+At the same time the standalone block periodically transmit six double values, whose values increase over timeThe socket data block receives these values and bundles them into its output signal of type ''Matrix<6,1,double>'' 
-[{{ :getting_started:tutorials:switchtest1.png?500 |//Control system of the example//}}] +[{{ :getting_started:tutorials:socketconnectionexample.png?500 |//Control system with socket data block and external standalone client//}}] 
- + ---- 
-Upon switching the block also triggers a safety eventThe safety system has two safety levels. The system stays for three seconds in the second levelAfter that the cycle restarts+Another example shows how two independent EEROS applications can pass data among each other by using a socket data block eachOpen a shell in the build directory of your EEROS library and run ''examples/socket/eerosServer/socketServerExample''. Open a second terminal and run ''examples/socket/eerosClientExample''While the socket data block of the former creates a socket server the latter creates a socket client which connects to the server
 +\\ 
 +You can alter the data types passed among them by commenting / uncommenting the corresponding lines directly in the source code.