Simulink Blocks for UDP/IP communication
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
simulink-udpip-blocks
Simulink® blocks for UDP/IP communication
These two blocks allow exchanging data bytes via an UDP/IP connection between simulink schemes possibly running as different processes on different (windows) machines.
Differently from the TCP/IP protocol, UDP/IP is totally asyncronous and non-blocking thus generally allowing 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.
To recompile the code, from the matlab command window, type: mex SimUdpClient3.c ws2_32.lib mex SimUdpServer3.c ws2_32.lib
Finally, note that you can use the "byteview" block, available at https://github.com/giampy1969/simulink-signal-byteview (or under MATLAB Central > File Exchange > Utilities > Simulink) to transform any simulink data type into bytes (aka uint8) and back.
Cite As
Giampiero Campa (2026). udpip (https://github.com/giampy1969/simulink-udpip-blocks/releases/tag/v1.2), GitHub. Retrieved .
General Information
- Version 1.2 (80.2 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.2 | See release notes for this release on GitHub: https://github.com/giampy1969/simulink-udpip-blocks/releases/tag/v1.2 |
||
| 1.1.0.0 | I've inserted the line:
|
||
| 1.0.0.0 | 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. |
