Manage parameter sets in Simscape

1 view (last 30 days)
Matej Lovric
Matej Lovric on 7 Nov 2022
What would be the best way to manage multiple parameter sets for multiple simscape components?
Let's say I have simscape models for a PMSM motor, inverter and a battery and I have them assembled in some top level vehicle model.
Each component has it own set of parameters relevant to it (motor: torque constant, max torque, losses; inverter: losses; battery: voltage, internal resistance, etc.). In real life I have ~10 different versions of each component that use the same simscape model but have different parameter values, due to different sizes, voltage ratings, cooling options etc.
In classic simulink, I would keep each component model in it's own .slx file and I would keep each parameter set in it's own data dictionary. Example: PMSM_motor.slx + motorLarge.sldd, motorSmall.sldd, motorRevB.sldd, ...
The vehicle model would be assembled using model references for each component, and I could easly change the active data dictionary of each component using the model explorer.
But this is not possible with Simscape..
  • Model reference does not support simscape components
  • Subsystem reference supports simscape but cannot use external data from data dictionaries
The Block Parameterization Manager seems like exactly the solution to this problem but unfortunately I can't seem to use it for my own components only predefined OEM.

Answers (0)

Categories

Find more on Composite Components in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!