sending UDP packets from simulink directly over network?
조회 수: 2 (최근 30일)
이전 댓글 표시
could we send UDP packets directly from simulink tool box over a wireless network to another computer?
댓글 수: 0
답변 (2개)
Guy Rouleau
2012년 4월 12일
Yes... you did not ask, but in case you want to know how, I would suggest to use the "UDP Send" block:
댓글 수: 2
Walter Roberson
2012년 4월 13일
No. .mat files are binary files which would be difficult to convert to meaningful text. You would end up having to interpret ("unpack") the text on the receiving end.
You would find it easier to send the variables one by one, converting each variable. But you are going to run into problems with handles, objects, cell arrays, structures, and everything except basic numeric arrays or character arrays. When you are working with character arrays, watch out for unicode, and for non-printable characters, and for characters that match your string delimiter.
I recommend that you rethink whether you are using UDP or TCP. If your converted data does not fit within a single 1514 character packet, then you will end up hacking TCP functionality on top of UDP.
Walter Roberson
2012년 4월 12일
Simulink doesn't care what network hardware you are using. There isn't a "different udp" for wireless or local or wired-network: those are hardware details that are taken care of automatically.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!