udpip

버전 1.2 (80.2 KB) 작성자: Giampiero Campa
Simulink Blocks for UDP/IP communication
다운로드 수: 5.1K
업데이트 날짜: 2023/5/13

simulink-udpip-blocks

Simulink&reg blocks for UDP/IP communication

View udpip on File Exchange

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.

인용 양식

Giampiero Campa (2024). udpip (https://github.com/giampy1969/simulink-udpip-blocks/releases/tag/v1.2), GitHub. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2023a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 TCP/IP Communication에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
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:
req_len = sizeof(struct sockaddr_in);
in SimUdpServer3.c (Thanks Matt).

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.

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.