User`s guide
5 Troubleshooting
5-4
Failure to Connect to Target
Possible Problem — When trying to connect to the target, the Simulation
Errors
dialog box displays
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 build successfully, we recommend that you delete
.mk and .obj
files from the Real-Time Workshop 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
External mode MEX-file "win_tgt" does not exist or is not on the
MATLAB path
Solution — The Real-Time Windows Target Versions 1.0 and 1.5 used the
MEX-file
win_tgt. For Real-Time Windows Target Version 2.2 and later, 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 the 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
rtwinext
4 Click Ok.