I am working on a Simulink project with a controller model that I want to reuse across various parts of my system. This controller is a referenced model, and I need to create multiple instances within a larger system model.
I have a need for shared and individual parameters:Individual: each instance of the referenced controller model needs different parameter values for certain blocks, such as gains or coefficients. I prefer to store this in a struct (one for each controller) for organization, e.g. "struct.var1, struct.var2". This should come from a MAT file.Shared: I have some parameters that need to be the same across all the instances. This could maybe come from another data source, such as a MAT file.
How can I achieve this workflow in Simulink? Where can I store my data, especially my shared and individual parameters?