MATLAB: Do I receive a ” get_param” error message when I connect to the target in external mode with xPC Target 2.7.1 (R14SP1+)

Simulink Real-Time

When I try to connect to my target in external mode with xPC Target 2.7.1 (R14SP1+) using the "Connect to target" button or menu item I receive the following error message:
??? Error using ==> get_param
SubSystem block does not have a parameter named 'xPCisDefaultEnv'.
Error in ==> xpc\private\xpcExtModeError at 8
if strcmpi(get_param(sys,'xPCisDefaultEnv'),'off')

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in xPC Target 2.7.1 (R14SP1+) when using the "Connect to target" button or menu item for external mode from a subsystem window. To work around this issue, ensure that you are trying to connect from the main model window.