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

7 ビュー (過去 30 日間)
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 件)

カテゴリ

Help Center および File ExchangeBlock Libraries についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by