3.5

3.5 | 6 ratings Rate this file 23 Downloads (last 30 days) File Size: 23.23 KB File ID: #4934

TCP/IP Blocks for Simulink

by Chetan Jadhav

 

16 May 2004 (Updated 03 Jun 2004)

These server and client blocks can be added to Simulink model to exchange data between computers.

| Watch this File

File Information
Description

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.

Required Products Simulink
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (11)
20 May 2004 Rohan Sarker  
19 Aug 2004 prashant kulkarni

really good

08 Oct 2004 zhu haowei

share your source code and help doucument

02 Feb 2005 Craig Sauer

This doesn't appear to be compatible with R14. I've tried it on my old R13 installation and it functions fine. On R14, I get the following error: "Error while obtaining sizes from MEX S-function 'matcli' in 'Client/S-Function'. MATLAB error message:
Invalid MEX-file 'C:\TCPIP Blocks\matcli.dll': The specified procedure could not be found."

14 May 2005 Viktor Burba

share your source code and help doucument

18 Jul 2005 nelson ramirez

Hi
This doesn't appear to be compatible with R14. I've tried it on my old R13 installation and it functions fine. On R14, I get the following error: "Error while obtaining sizes from MEX S-function 'matcli' in 'Client/S-Function'. MATLAB error message:
Invalid MEX-file 'C:\TCPIP Blocks\matcli.dll': The specified procedure could not be found."

I want to know what i have to do
thanks

10 Aug 2005 hui lei

On R14, I get the following error: open('E:\MATLAB6p5p1\toolbox1\TCPIP Blocks\TCPIP Blocks\Server.mdl')
The element type "name" must be terminated by the matching end-tag "</name>".
Could not parse the file: d:\matlab7\toolbox\ccslink\ccslink\info.xml
Unable to load mex file: E:\MATLAB6p5p1\toolbox1\TCPIP Blocks\TCPIP Blocks\matser.dll.
ÕÒ²»µ½Ö¸¶¨µÄÄ£¿é¡£

??? Invalid MEX-file 'E:\MATLAB6p5p1\toolbox1\TCPIP Blocks\TCPIP Blocks\matser.dll': ÕÒ²»µ½Ö¸¶¨µÄÄ£¿é¡£

05 Jan 2007 Steven Kolak

Simulink now supports TCP/IP communication with Simulink blocks provided in the Instrument Control Toolbox.

These client blocks enable Simulink models to communicate with remote applications.

Visit the Simulink TCP/IP web page for more information:
http://www.mathworks.com/tcpip

21 Jul 2007 Oli Ver

Hello!
I got exactly the same error message:
"Error while obtaining sizes from MEX S-function 'matcli' in 'Client/S-Function'. MATLAB error message:
Invalid MEX-file 'C:\TCPIP Blocks\matcli.dll': The specified procedure could not be found."
Can we get the source code? Or can you recompile your code with a newer version of Matlab?

Thanks in advance.

15 Aug 2007 Kunn Den

thanks for the article.

23 May 2008 C Z

I got the same problem as Oli Ver did. How did you fix it?

Please login to add a comment or rating.
Updates
24 May 2004

updated

03 Jun 2004

updated

Tag Activity for this File
Tag Applied By Date/Time
simulink Chetan Jadhav 22 Oct 2008 07:20:02
tcpip Chetan Jadhav 22 Oct 2008 07:20:02
server Chetan Jadhav 22 Oct 2008 07:20:02
utilities Chetan Jadhav 22 Oct 2008 07:20:02
client Chetan Jadhav 22 Oct 2008 07:20:02
client René 02 Jan 2012 04:51:18
server René 02 Jan 2012 04:51:21

Contact us at files@mathworks.com