Warning: Ignoring settings in the tunable parameters table for model 'controller' because it references or is referenced by another model
25 ビュー (過去 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!
0 件のコメント
回答 (1 件)
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:
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!