MATLAB: Do I receive an incorrect version error when running the model in external mode with Real-Time Windows Target 2.7 (R2007a)

I received the following error when I ran my model in Real-Time Windows Target external mode:
"Error in executing external mode MEX-file 'rtwinext' incorrect version"

Best Answer

This error occurs when there is an incorrect version of the real-time kernel installed. You can use the function RTWHO at the MATLAB command prompt to return the kernel version. The kernel version needs to match the Real-Time Windows Target version.
Reinstalling the kernel using the "rtwintgt -setup" command should resolve the issue.