How do I configure multiple instances of the same referenced model to store values from MAT files?
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?
Accepted Answer
More Answers (0)
Categories
Find more on Create Large-Scale Model Components 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!