How do I recompile the manually modified generated-code from Real-Time Workshop 7.3 (R2009a)?
Show older comments
I am generating an S-function block from a subsystem by right-clicking on the subsystem block and selecting "Real-Time Workshop > Generate S-Function...". Since the subsystem contains blocks which are dependent on the sample time, the generated S-function code will have the sample times hardcoded in it. So when I try to use this new block in different models, they fail to run.
So I plan to manually modify the generated code to make it sample time independent. However, I am unable to successfully create a MEX-file from the generated files. I believe I am not passing all the dependent files to the MEX function.
Accepted Answer
More Answers (0)
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!