MATLAB Answers

Is it possible to customize Simulink block parameters and take them as default?

조회 수: 1(최근 30일)
Jörg Middendorf
Jörg Middendorf 21 Mar 2018
답변: Mark McBroom 24 Mar 2018
Background: We are working with a Team of about 50 people on about 150 Simulink Models. We have rules to color certain blocks (Input Ports orange, Output Ports purple,...). Also we demand certain sample times for e.g. Constant Blocks (-1) instead (inf) which is default. It would be desired to load a default configuration using an init script so that everybody can use the Library Browser and select standard Simulink blocks but automatically getting the right configuration. Is there any way to do that?

답변(2개)

ES
ES 21 Mar 2018
I think, this is one simple tool you can use.
https://in.mathworks.com/matlabcentral/fileexchange/30248-add-simulink-blocks-from-a-given-model-file-with-context-menu
  댓글 수: 1
Jörg Middendorf
Jörg Middendorf 21 Mar 2018
The idea was to still use the native Simulink blocks from Library Browser but with other settings relative to color or sample time. We could build our own libraries with these blocks but it will be confusing for users where to take blocks from.

댓글을 달려면 로그인하십시오.


Mark McBroom
Mark McBroom 24 Mar 2018
A couple of options
1. You can create your own custom Simulink library. In this library you place all standard Simulink blocks that you want your users to have access to. THen, in this custom library, set all desired properties ( colors, sample times, etc. ).
2. Create a set of Model Advisor rules that enforce the various modeling patterns. Have users run these model advisor checks to find and repair blocks that are not configured to your standard.

Community Treasure Hunt

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

Start Hunting!

Translated by