Azzera filtri
Azzera filtri

Simulink coder and disabled subsystems

2 visualizzazioni (ultimi 30 giorni)
David
David il 21 Gen 2015
Risposto: TAB il 7 Apr 2015
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

Risposte (2)

Paolo
Paolo il 7 Apr 2015
I have the same problem. It seems that the optimization "Simulation and code generation -> Block reduction" doesn't properly work in this case.

TAB
TAB il 7 Apr 2015
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.

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by