MATLAB Answers

MarkusP
0

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

Asked by MarkusP
on 16 Apr 2018
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!

  0 Comments

Sign in to comment.

0 Answers