Using Simulink | ![]() ![]() |
Tips for Building Models
Here are some model-building hints you might find useful:
In general, the more memory, the better Simulink performs.
More complex models often benefit from adding the hierarchy of subsystems to the model. Grouping blocks simplifies the top level of the model and can make it easier to read and understand the model. For more information, see Creating Subsystems. The Model Browser (see The Model Browser) provides useful information about complex models.
Well organized and documented models are easier to read and understand. Signal labels and model annotations can help describe what is happening in a model. For more information, see Signal Names and Drawing a Line Between Blocks.
If several of your models tend to use the same blocks, you might find it easier to save these blocks in a model. Then, when you build new models, just open this model and copy the commonly used blocks from it. You can create a block library by placing a collection of blocks into a system and saving the system. You can then access the system by typing its name in the MATLAB command window.
Generally, when building a model, design it first on paper, then build it using the computer. Then, when you start putting the blocks together into a model, add the blocks to the model window before adding the lines that connect them. This way, you can reduce how often you need to open block libraries.
![]() | Using Callback Routines | Libraries | ![]() |