Is it possible to add custom block parameters to Simulink blocks in Simulink 7.8 (R2011b)?
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!