MATLAB: Is there a conflict between xPC Target and the Windows XP Service Pack 2 firewall

2delayexceptionfirewallinitializationinitializepackserviceSimulink Real-Timesp2targettimeoutwindowsxpxpc

When I try to build my application that uses a thermocouple board with xPC Target, the build fails. When this failure occurs, the host will often not respond (i.e., MATLAB freezes). This behavior is not seen when I turn off the Windows XP Service Pack 2 firewall.

Best Answer

We have verified that there is a conflict between xPC Target and the Windows XP Service Pack 2 firewall in the way that applications are built from Simulink models. On occasion, the initialization process for a board (such as a thermocouple board) takes too much time. In these cases, the Windows XP Service Pack 2 firewall classifies the response "I'm done initializing" as a new incoming connection and blocks it.
To work around this issue, add MATLAB to the exception list of the Windows XP Service Pack 2 firewall. This should enable you to successfully build the application without disabling the entire firewall. For further information about the Windows XP Service Pack 2 firewall, see the following Microsoft article:
In particular, see the section entitled "Adding a program exception."