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

3 ビュー (過去 30 日間)
Daniel
Daniel 2013 年 4 月 3 日
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 Center および File ExchangeSimulink Coder についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by