Warning: Ignoring settings in the tunable parameters table for model 'controller' because it references or is referenced by another model

29 次查看(过去 30 天)
Hello all,
when simulating the Simulink model that contains a model reference block 'controller' i get the following warning:
Warning: Ignoring settings in the tunable parameters table for model 'controller' because it references or is referenced by another model. Create Parameter objects with the storage class Information from the tunabel Parameters table.
Can someone give me some more detailed Information how to fix this ?
Thanks in Advance!

回答(1 个)

Ritika Thusoo
Ritika Thusoo 2025-8-22,15:38
Hi,
When you use ‘Model Reference’ blocks, Simulink requires that tunable parameters (parameters you want to change during simulation or code generation) be defined in a way that is compatible across model boundaries.
Instead of directly using variables (like workspace variables) in the Tunable Parameters table of a referenced model you can use ‘Simulink.Parameter’ objects with appropriate Storage Class settings.
Create a ‘Simulink.Parameter’ object to set the value of one or more block parameters in a model, such as the Gain parameter of a Gain block. You create the object in a workspace or in a data dictionary. Set the parameter value in the object, then reference the object from the block.
You can read more about this from the documentation page:
You can turn off the warning also by following the documentation given here:

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by