I am using tunable Simulink.Parameter in R2019a, which has a "Model default" storage class. In R2019a, the generated code of this tunable parameter has the keyword "static", it is declared as static class members. Thus, these "tunable parameters" are no longer linked to a particular instance. I expected the "Tunable parameters" links to a certain instance in the generated code.
In R2018b, with the same setting, you will not get "static" for it.
What causes this change? And how can I generate code for tunable parameters without "static"?
Best Answer