Simulink Settings for Blocks

12 ビュー (過去 30 日間)
Shane Smith
Shane Smith 2018 年 11 月 27 日
回答済み: Fangjun Jiang 2018 年 11 月 27 日
I was wondering if it was possible to define default standards for standard Matlab blocks.
For example, constant blocks default to a datatype of inherit from the constant value, I'd like to be able to set that to a 'single'. I'd also like to be able to set the default sample time to be inherited. That way when anyone inserts one into their model those settings are set to those default settings.
It would also be nice to set default annotations to help illustrate mask settings of the block, like shown below:
BlockAnnotations.JPG
Is there anyway to do this? Could it be done for a specific project, so we could have different default settings as needed?

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2018 年 11 月 27 日
One way I can think of (or actually I am doing it in this way) is that you modify the built-in Simulink library to reflect these changes and save it as your customized library. Then you always use your customized library as the source to construct your model.

カテゴリ

Help Center および File ExchangeInteractive Model Editing についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by