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

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

Are those parameters associated with non-tunable dialog parameters on blocks inside the subsystem, by any chance? Do you see any warnings displayed in the MATLAB command window?
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
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일

1 개 추천

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일

0 개 추천

That means that your parameters are not tunable

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

질문:

2013년 4월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by