A Question on UDP Receive Block

조회 수: 3 (최근 30일)
A P S
A P S 2016년 8월 25일
댓글: A P S 2016년 8월 25일
Hello Everyone... I am trying to receive UDP Data via Ethernet in Simulink. I have three questions in regard to this.
1) There are two UDP Receive Blocks in Simulink library browser , One in DSP System TOolbox and Instrumentation Control Toolbox. What is the functional difference between these two blocks... I mean why one is preferred over other..
2) Does "UDP Receive" has to be used only with conjuction with UDP Send... i.e If I send UDP packets using "UDP Send " block from another Simulink on Same (or) different Computer???? I believe answer is NO.
The Reason Why I am asking this question is , I used two different computers and Tried to send Data using UDP SEND and UDP Receive ... It Worked... But When I am trying to Send UDP Packets of simple numbers (or) String from another environment (PERL) on different computer, I simply see Zeros on the Receiving side. No matter what I tried on Simulink . (I guess I am missing some simple part)
3) Is there anyone who has tried Sending Data from different Environment (like PERL ) and successfully captured what was sent on SIMULINK platform. If Yes, Are you doing any kind of packing-unpacking at eother side (or Just Sending Raw Numbers. ) ?
Any Idea (or) direction is highly appreciated Please let me know if you have any questions.

채택된 답변

Walter Roberson
Walter Roberson 2016년 8월 25일
http://www.mathworks.com/help/dsp/ref/udpreceive.html cannot be non-blocking. It also supports variable-length signals. The documentation on it is explicit about support for generated code.
http://www.mathworks.com/help/instrument/udpreceive.html supports non-blocking. It is not obvious whether it supports variable-length signals. It is not obvious whether code generation is supported.
Does "UDP Receive" has to be used only with conjuction with UDP Send
No, you should be able to receive data from outside. I have not tried it myself, but I have seen enough messages to know that people have been able to get it to work.
  댓글 수: 1
A P S
A P S 2016년 8월 25일
Thanks Mr.Roberson.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by