Saving Initial Values in the Model

You can save changed initial values of parameters and variables into the model code, once the model is validated by a simulation.

Note: Only initial values of top-level classes can be modified; base classes of instantiated components are not modified.


Before you begin:
See Also
About Initial Conditions in Virtual Execution
About Virtual Execution
You can save the initial values to the model in two ways:
  • From Variable Browser, under the header, click Save Initial Values in Model .
  • From Variable Browser, right-click the Initial Value column header and select Save Initial Values in Model.
Changed initial values (indicated with a green marker in front in the column Initial Value) are saved to the model. Note that the initial values of the following parameters cannot be saved:
  • Evaluated parameters.
  • Final parameters.
  • Protected parameters.
  • Parameters in an array of components.
  • Parameters being parts of bounded record components.