User Tools

Site Tools


getting_started:tutorials:controlsystem5

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. 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 to. The stand alone client prints these values ten times per second.
At the same time the standalone block periodically transmit six double values, whose values increase over time. The socket data block receives these values and bundles them into its output signal of type Matrix<6,1,double>

Control system with socket data block and external standalone client

Another example shows how two independent EEROS applications can pass data among each other by using a socket data block each. 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/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.

getting_started/tutorials/controlsystem5.txt · Last modified: 2017/09/01 12:11 by graf