I would like to add custom parameters to built-in blocks in my Simulink model. For example, if the model, 'myModel' contains the Gain Block, 'gain1' I would like to add a parameter 'myParam' to this block so that I may access it via:
get_param('myModel/gain1', 'myParam')set_param('myModel/gain1', 'myParam', some_value)
Moreover, I would like for the value of the parameter to persist after I save and close the model's MDL file.
Best Answer