TCP/IP Blocks for Simulink

These server and client blocks can be added to Simulink model to exchange data between computers.
7.4K Downloads
Updated 3 Jun 2004

No License

The TCP/IP blocks contain a server block and a client block. These are implemented using C MEX S-function and Winsock2. Among the four files, matser.dll is the server implementation and matcli.dll is the client implementation. server.mdl and client.mdl are the examples Simulink model files.

Copy the matser.dll and server.mdl on one computer and copy matcli.dll and client.mdl on another computer. Enter port number in port parameter of server S-function mask and server name or IP address and port number in parameters of client S-function mask. First start server, Simulink will not respond as the server goes in to listing mode. Then run the client on other computer. Once connected both server and client model will start exchanging data.

When using TCP/IP blocks in your model, copy and paste corresponding blocks from example files to your model. Alternately, S-function block from Simulink Library Browser can also be used in conjunction matcli.dll or matser.dll.

Cite As

Chetan Jadhav (2024). TCP/IP Blocks for Simulink (https://www.mathworks.com/matlabcentral/fileexchange/4934-tcp-ip-blocks-for-simulink), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

TCPIP Blocks/

Version Published Release Notes
1.0.0.0

updated