Why does the code generated from a subsystem truncate the subsystem name and limit it to 16 characters in Real-Time Workshop 5.0 (R13)?
1 view (last 30 days)
Show older comments
I am trying to generate Real-Time Workshop code for a subsystem in my Simulink model by clicking on 'Build Subystem'. I have set the function name and file name in the generated code to the option 'Use subsystem name'. However, the functions in the generated code contain only the first 16 characters of the subsystem name. This problem does not occur when I build a model whose name is longer than 16 characters. Is there a limitation on the length of the subsystem name when generating code from it?
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, read below for any possible workarounds:
As a workaround, set the function name to the option 'User specified' and specify the full name of the subsystem.
0 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!