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

7 views (last 30 days)
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 Comments
Daniel
Daniel on 4 Apr 2013
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 on 4 Apr 2013
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.

Sign in to comment.

Accepted Answer

Daniel
Daniel on 5 Apr 2013
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.

More Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 3 Apr 2013
That means that your parameters are not tunable

Products

Community Treasure Hunt

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

Start Hunting!