MATLAB: Do I receive the assignment type mismatch warning when building a model in Real-Time Workshop 4.1.x (R12.1)

assignmentc4047constdoubleimportedexternpointermismatchpointers-functionsimulink codertotypewarning

Why do I receive the assignment type mismatch warning when building a model that contains an ImportedExternPointer type of input signal to a s-function block in Real-Time Workshop 4.1.x (R12.1)?

Best Answer

This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
This is a bug has been fixed in the Real-Time Workshop 5.0.1 (R13) patch release. The solution attached at the bottom of this page provides more information on all of the bug fixes along with download directions for the latest patch releases.