Why do I get a Bind Error when using UDP with Simulink Real-Time?

Using UDP in Simulink Real-Time, why do I get a Bind Failed Error?

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2025년 3월 20일
편집: MathWorks Support Team 2025년 3월 20일

MATLAB R2020b and later

A Bind Error may indicate that the Ethernet interfaces (ETH1, ETH2,...) on the Speedgoat target computer are not set up with the correct IP address.
To do so, run the speedgoat.configureEthernet utility which is part of Speedgoat I/O Blockset:
>> speedgoat.configureEthernet
The IP address of your Ethernet port should be on the same subnet as that of the external device you are trying to establish UDP communication with. However, it must also be on a different subnet than that of the other Ethernet ports on the target machine, including the Host Link port.
For any questions regarding "speedgoat.configureEthernet" or Speedgoat I/O Blockset, please reach out to Speedgoat support.
.

MATLAB R2020a and prior

In MATLAB R2020a and earlier, there are different Bind Failed Error causes, distinguished by their Error Codes:
  • Error 10013: This error can occur if the port is already in use. Try changing the port number to something else. The recommended range is [1024 65535] since ports below 1024 can be reserved.
  • Error 1 (204): See this MATLAB answer.
If you encounter a Bind Failed Error not listed here, please contact MathWorks Technical Support.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 System Configuration에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by