I though I needed to mdlRTW function to produce code for the rapid accelerator. However, this is not necessary. Simply deleting this part of the S-function solved the problem
How to resolve S-function mdlRTW error during code generation?
25 views (last 30 days)
I'm trying to use a C MEX S-function in my Simulink model. I can run the model in normal mode, but I'd like to use it in Rapid Accelerator mode. The following error occurs when I try to build the rapid accelerator target:
This S-function block must have a corresponding TLC file since it has an mdlRTW() function
Why does this error occur? I have only non-tunable parameters in my S-function so I left the MDL_RTW function empty (at the end of the S-function). Where do I have to begin to resolve this question? I'm pretty new to code generation of S-functions so I have no idea where to start.
I can include my S-function if necessary.