I made a custom library with different blocks. In one block I want to use the fundamental sample time of the model, in which the block is placed, in the initialization sector of the mask editor from this the block. One option is to use the name of the model, e.g. "MyModel" in the function get_param(). I want to use the block of my custom library in different models with different model names. How should I implement the function get_param() to avoid changes in my mask editor everytime I insert the mentioned block of my library in a new model?
Thanks for your help!