Well, it seems that my problem can not be solved because of what is called parameter loss of tunability.
The problem is that code generation does not support tunable parameters when used in an arithmetic expression with unsupported operators:
https://fr.mathworks.com/help/rtw/ug/parameters.html#bvbmv64
...and in my case, referencing a parameter of a subsystem instance as a particular component of a global parameter is not supported, with the result that my parameter is inlined. All I can do is detect when a parameter loses its tunability by generating a warning or an error wia the ParameterTunabilityLossMsg configuration option:
https://fr.mathworks.com/help/simulink/gui/detect-loss-of-tunability.html
Quentin
