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

2 visualizaciones (últimos 30 días)
Daniel
Daniel el 3 de Abr. de 2013
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 comentarios
Daniel
Daniel el 4 de Abr. de 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 el 4 de Abr. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Daniel
Daniel el 5 de Abr. de 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.

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 3 de Abr. de 2013
That means that your parameters are not tunable

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by