This is an expected behavior while using xPC Target 4.0(R2008b) with a SCRAMNET board.
When a user issues a tg.start on the MATLAB, the target run mdlstart(), reads interrupt controller status, and installs the interrupt handler. mdlstart() and reading interrupt controller status may take longer on some hardware platforms which throws the TCP/IP timeout error.
As a workaround, increase the default timeout to a higher value( for example, 15 seconds). In order to do that, please execute the following steps:
1. Click Simulation -> Configuration parameters
2. Select xPC Target options under Real-Time Workshop
3. Uncheck default communication timeout
4. Type 15 in Specify the communication timeout in seconds
5. Click Apply and Ok.
Best Answer