MATLAB Answers

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

1 view (last 30 days)
MarkusP on 16 Apr 2018
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!

Answers (0)

Community Treasure Hunt

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

Start Hunting!