How to use the Fundamental Sample Time value within the mask editor of a library block?

1 Ansicht (letzte 30 Tage)
Hi!
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!

Antworten (0)

Kategorien

Mehr zu Author Block Masks finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by