How can I define a custom BlockType in Simulink
古いコメントを表示
Hello,
When I create a custom block using an S-function, the BlockType of this block, by using
get_param(myblock, 'BlockType')
is displayed as S-Function .
If now I put a mask on my custom block, the block type will be displayed as Reference .
How can I get this to return something like Mycustomblocktype ?
Thank you,
Jack
2 件のコメント
Jacques
2014 年 2 月 23 日
Daniel
2014 年 7 月 3 日
I have the same problem. How can i change BlockType which is always marked as readonly? Currently the BlockType inherit from previous block like subsystem, s-function etc. I need my own types and using an additional attribute is more a hack than a solution for this problem.
採用された回答
その他の回答 (1 件)
Kaustubha Govind
2014 年 7 月 10 日
1 投票
The BlockType parameter cannot be customized, and is only defined by internal blocks. For your case, perhaps you could use MaskType instead?
カテゴリ
ヘルプ センター および File Exchange で User-Defined Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!