|
|
| File Information |
| Description |
These two blocks allow exchanging data bytes via an UDP/IP connection between simulink schemes running possibly as different processes on different (windows) machines.
Differently from the TCP/IP protocol, UDP/IP is totally asyncronous and non-blocking thus allowing in general a faster communication. Additionally, the client and server can be started or stopped in any order, as opposite to the TCP/IP case, where the server must always be started before the client is started and stopped after the client is stopped.
Finally, note that you can use the "byteview" block, available under
MATLAB Central > File Exchange > Utilities > Simulink, to transform any simulink data type into bytes (aka uint8) and back.
The C code for both the sender (client) and the receiver (server) is included in the zip file. |
| Required Products |
Simulink
|
| MATLAB release |
MATLAB 5.3 (R11)
|
| Other requirements |
Win32 platform required (e.g. Vista, WinXP, Win2K, Wine ...) |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (3) |
| 05 Jan 2007 |
Steven Kolak
|
|
|
| 27 Jul 2008 |
Jaganathan Ranganathan
|
|
|
| 13 Feb 2009 |
Matt
|
|
|
| Updates |
| 23 Oct 2007 |
Recompiled the s-functions with matlab 7.1 so that everything works fine with newer versions requiring the .mexw32 extension. The .dll files are retained to the benefit of users working with versions prior to 7.1, other users may delete them. |
| 01 Apr 2009 |
I've inserted the line:
req_len = sizeof(struct sockaddr_in);
in SimUdpServer3.c (Thanks Matt). |
|
Contact us at files@mathworks.com