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
Checksum mismatch. Target code needs to be rebuilt
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.
External mode MEX-file `win_tgt" does not exist or is not on the MATLAB path
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:
rtwinext
![]() | Compiler Error Message | Sample Time Too Fast | ![]() |