You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment it is a bit cumbersome to get started with the TCP/IP blocks since it is not possible to have them in the same example model as is possible for all other communication blocks.
A first experiment has shown following issues:
The client block needs to connect to a running server during initialization and blocks until the connection is established. It needs to be ensured that the server is started before the client tries to connect, otherwise simulation progress is dead locked.
The intertwined server and client receive/send results in a infinite blocking even if server is started before the client.
Issue 1. can be ensured by suitable logic within Modelica, but it seems that 2. needs changes in the C code. One option is to run the server read and write in a detached thread. Maybe it is also possible to avoid blocking by supporting non-blocking I/O in both, client and server.
The text was updated successfully, but these errors were encountered:
At the moment it is a bit cumbersome to get started with the TCP/IP blocks since it is not possible to have them in the same example model as is possible for all other communication blocks.
A first experiment has shown following issues:
The client block needs to connect to a running server during initialization and blocks until the connection is established. It needs to be ensured that the server is started before the client tries to connect, otherwise simulation progress is dead locked.
The intertwined server and client receive/send results in a infinite blocking even if server is started before the client.
Issue 1. can be ensured by suitable logic within Modelica, but it seems that 2. needs changes in the C code. One option is to run the server read and write in a detached thread. Maybe it is also possible to avoid blocking by supporting non-blocking I/O in both, client and server.
The text was updated successfully, but these errors were encountered: