TCP/IP Blocks for Simulink
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
Platform Compatibility
Windows macOS LinuxCategories
- Test and Measurement > Instrument Control Toolbox > Interface-Based Instrument Communication >
- Simulink > Simulink Environment Fundamentals > Block Libraries >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
TCPIP Blocks/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | updated |