CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
157 stars 51 forks source link

Missing initial values in xml for simple blocks like constants and gains (values in workspace) #247

Closed jbernalr closed 3 years ago

jbernalr commented 3 years ago

Please see mini model sent per email: exmpl_InitParam.zip

t-sommer commented 3 years ago

The DefaultParameterBehaviour has to be set to Tunable to make the parameters appear in the XML. To access the values of a Simulink.Parameter you can use the solution proposed in #248:

SimulinkParameter.('firstElement')