Why can't I tune a tunable parameter during Simulation?

2 次查看(过去 30 天)
Hello,
I have a masked subsystem model with some parameters I set as tunable, in order to be able to tune these parameters during simulation. However when I start the simulation none of the parameters are enabled.
Can anyone help me out with this? Is there any other settings to change to make them tunable?
Thank you!
  3 个评论
Daniel
Daniel 2013-4-4
Hello,
Thank you for the reply Kaustubha!
I had to uncheck the Inline Parameters within the Optimization Pane in the Configuration Parameters. Now I am able to tune my parameters during execution.
If you have a reply, please post it as an answer so I can accept it.
Thank you.
Best Regards
Kaustubha Govind
Kaustubha Govind 2013-4-4
Daniel: Since you have found the solution, please write your comment as an answer and accept it. :) It will be useful in the future to anyone else who runs into a similar issue.

请先登录,再进行评论。

采纳的回答

Daniel
Daniel 2013-4-5
If you defined a tunable parameter in your masked subsystem and it is not enabled to tune while executing you should check if the Inline Parameters check box in the configuration parameters is checked.
(Model Window > Simulation > Configuration Parameters > Optimization > Signals and Parameters > Simulation and Code Generation)
When the Inline Parameters is checked your parameters are identified as constants in the code generation. If unchecked the code generation will assign your tunable parameters as variables, therefore you will be able to tune them while executing.

更多回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-4-3
That means that your parameters are not tunable

类别

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

产品

Community Treasure Hunt

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

Start Hunting!

Translated by