MATLAB: Do I get the “11 130 0 ENOTSOCK” error while trying to boot the xPC Target using the hard drive or the USB drive in xPC Target

Simulink Real-Time

I get the following error when I try to boot the xPC Target from the hard disk or directly from the USB:
Error: Error 11 130 0
Error: -->ENOTSOCK
Once the error is displayed, the xPC Target is unreachable from the xPC Host.
The model and the xPC Target work fine when I boot the xPC Target using a boot floppy.

Best Answer

ENOTSOCK means that there are no more sockets available when the software allocates a TCP or UDP socket. It is highly possible that the programs running before the autoexec.bat occupies the network card used for host-target communication.
To work around this issue, please boot the xPC target with a simple DOS boot floppy, then manually start the model by typing the following command under the directory containing xpc files (boot, autoexec, .rtb) in the hard disk:
xpcboot my_model.rtb
where my_model is the name of the Simulink model which is to be run on the target machine.