Why Simscape variables are hard-coded in the generated code?
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Variable Initialization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
