From: Ramon Nogueron on
Please I need help defining a parameter structure. I need a structure to use it as tunnable parameter because I want to use the C Api to change its value in runtime.
I use a structure because I need to group so many parameters.

The information in the help says:

Tuning Structure Parameters

Clear Configuration Parameters > Optimization > Inline parameters. See Inline parameters for more information.

Set Inline parameters, then specify the parameter structure as tunable in the Model Parameter Configuration Dialog Box.

Associate a Simulink.Parameter object with the structure parameter, and specify the object's storage class as anything other than auto.


Honestly I cannot understand some steps. First it says "clear" inline params... which is strange specially because the following step is "set" inline parameters.

But my big question is about how to assign the simulink.parameter object to the structure in the workspace. So in the workspace I have an structure like st.a = 1 , st.b = 2
How can I associate this structure with the simulink.parameter? what should I use for storage type, etc?

I cannot find that explained properly.

Thank you very much!

Ramon.