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
|
|
|
| 08 Oct 2004 |
zhu haowei
|
|
|
| 02 Feb 2005 |
Craig Sauer
|
|
|
| 14 May 2005 |
Viktor Burba
|
|
|
| 18 Jul 2005 |
nelson ramirez
|
|
|
| 10 Aug 2005 |
hui lei
|
|
|
| 05 Jan 2007 |
Steven Kolak
|
|
|
| 21 Jul 2007 |
Oli Ver
|
|
|
| 15 Aug 2007 |
Kunn Den
|
|
|
| 23 May 2008 |
C Z
|
|
|
| Updates |
| 24 May 2004 |
updated |
| 03 Jun 2004 |
updated |
|
Contact us at files@mathworks.com