Why Simscape variables are hard-coded in the generated code?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Variable Initialization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!