Real-Time Windows Target    

Failure to Connect to Target

Possible Problem - When trying to connect to the target, the Simulation Errors dialog box displays the following message

Solution - This indicates that the model structure has changed since the last time code was generated. You must rebuild the real-time application. If your model fails to successfully build, we recommend that you delete .mk and .obj files from the RTW project directory, and then select Build from the Tools menu.

Possible Problem - When trying to connect to the target, the Simulink diagnostic dialog box displays the following message.

Solution - Real-Time Windows Target Versions 1.0 and 1.5 used the MEX-file win_tgt. For Real-Time Windows Target Version 2.0, the MEX-file name was changed to rtwinext. If you create a new Simulink model, the new filename is entered correctly. If you have Simulink models where you used Real-Time Windows Target 1.0 or 1.5, you need to change the filename using the following procedure:

  1. In the Simulink window, and from the Tools menu, click External mode control panel.
  2. On the External Mode Control Panel dialog box, click the Target interface button.
  3. In the External Target Interface dialog box, and in the MEX-file for external mode text box, enter
  4. Click Ok.

 Compiler Error Message Sample Time Too Fast