Cannot override parameters in Simulink model configuration reference
显示 更早的评论
I am using MATLAB R2021b on Ubuntu 20.04. I have created a Simulink model that uses a configuration reference (the configuration exists in the base workspace). This configuration has also been propagated to multiple reference models in my model. When trying to override one of the parameters in my top level model, the "override" menu option is greyed out and I cannot override the parameter. How may I override this parameter?

2 个评论
Vinayak
2023-4-25
Is the parameter defined as a configuration parameter?
If thats the case, you can modify the configuration object to make the parameter tunable.
This can be done by setting the "AllowTuning" property of the configuration object to true.
Ted Ecclestone
2023-4-29
回答(1 个)
Jonas
2023-4-24
0 个投票
You can only adapt the Configuration Parameters object, not the Configuration Reference object. You need to adapt the Configuration Parameters in the base workspace.
3 个评论
Ted Ecclestone
2023-4-29
编辑:Ted Ecclestone
2023-4-29
Jonas
2023-5-2
It seems like not all parameters can be overriden. Some allow overriding, others have the override feature greyed out. Are you not able to override any parameter inside the Configuration Reference object?
Ted Ecclestone
2023-5-3
类别
在 帮助中心 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!