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.
>> 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.