Simulink coder and disabled subsystems
1 回表示 (過去 30 日間)
古いコメントを表示
I'm trying to generate code from a Simulink diagram which contains an enabled subsystem. The enable is tied to a workspace variable that is always 0 (the subsystem should never be enabled). Still, it seems that the coder tries to generate code from this system. Why is this happening? Can I stop it from happening?
Thanks
0 件のコメント
回答 (2 件)
Paolo
2015 年 4 月 7 日
I have the same problem. It seems that the optimization "Simulation and code generation -> Block reduction" doesn't properly work in this case.
0 件のコメント
TAB
2015 年 4 月 7 日
Check if
Optimization > Inline Parameters
option is selected.
If this option is not selected, then Simulink will assume every parameter as tunable and it will be included in code independent of its value.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!