I have created a simple model to learn how to work with tunable parameters at Simulink.
The model contains:
- a gain block (outside the mask) and its value is defined by a variable "scalar_gain" at workspace;
- a gain block (encapsulated inside a mask) the gain value is define by a variable on the mask "masked_gain", which is defined on the workspace and in the mask tunable attribute is marked "on".
At the following model seeting code generation/optimization/ the default behaviour parameter is Tunable;
Then I compile the code and load it at the targetPC.
I open the Simulink Real Time Explorer and look for the tunable parameters and only the scalar_gain appears.
What I should for the masked parameters to be tunable as well?
Second question how can I retrieve programmaticaly the tunable parameters from simulation? I mean, there is any command that shows me all the tunable parameters in the model?
Thank you.