Why Simscape variables are hard-coded in the generated code?
Ältere Kommentare anzeigen
I am generating code for a physical network that includes a 'Constant Volume Chamber (G)'. I need to modify the initial pressure externally, but I cannot find an option to switch the configuration from 'Compile-time' to 'Run-time'. As a result, the exported C++ code has the initial pressure value hardcoded based on the current variable value in the Workspace.
Is there a way to configure the initial pressure at 'Run-time'?
If yes, could you please provide guidance on how to achieve this?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Run-Time Parameters finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
