Libraries and Blocksets
Use libraries and blocksets to organize blocks and their auxiliary files, such as external data files, graphic files, HTML help files, and MATLAB® scripts. Libraries enable you to standardize components across projects, providing consistency and reducing development time. When you use library blocks in a model, the library block serves as the prototype and its instance in the model is a linked block, that appears and behaves just like the prototype. Using linked blocks is particularly useful when you want consistent behavior across all instances of a block that you frequently reuse in models.
You can use the built-in libraries from the Simulink® Library browser. However, you cannot modify these libraries. Alternatively, you can create custom libraries for your specific needs. For information on using built-in libraries, see Block Libraries. To start creating your own libraries, see Create Custom Library.
Functions
libinfo | Get information about library blocks referenced by model |
Tools
Library Browser | Find and add blocks to model |
Checks
Topics
Custom Libraries
- Create Custom Library
Create a custom library, add blocks and annotations, and configure library settings. - Add Libraries to Library Browser and Quick Insert
Add library and sublibrary to Library Browser and quick insert and set library order. - Link Data Dictionary to Custom Libraries
Share data objects with Simulink block library users using linked data dictionary. - Maintain Compatibility of Library Blocks Using Forwarding Tables
Map old and new library blocks using forwarding tables.
Library Links
- Linked Blocks
Explore linked blocks, parameterized links, and self-modifiable linked subsystems. - Display Library Links
Identify link status using the link badge. - Disable or Break Links to Library Blocks
Disable library links. - Lock Links to Blocks in a Library
Prevent unintentional modification of linked library blocks. - Restore Disabled Links
Restore library links and link inconsistency. - Restore Parameterized Links
Restore or push parameterized links. - Control Linked Blocks Programmatically
Use MATLAB commands to manage linked blocks. - Fix Unresolved Library Links
Fix unresolved references to library blocks. - Parameterized Links and Self-Modifiable Linked Subsystems
Modify a parameter value or structure of linked Subsystem block. - Create Library Blocks Using Self-Modifiable Masks and Variant Blocks
Modify linked blocks from a library that uses self-modifiable masks and variant blocks.