Libraries in Simulink Made Easy
Have you ever needed to add more structure and increase the usability of your Simulink models? If yes, then Simulink libraries are probably for you. Libraries are a generalization on the typical subsystem paradigm in Simulink. They allow you to modify and standardize multiple instances of a subsystem from one central location, i.e. from the library. But adding structure by way of libraries also necessarily imposes more constraints. And these added constraints are what can frustrate users new to libraries.
This video can greatly lessen that frustration. In this video we first provide the motivation for using libraries, the classic why. Then we get into the way by showing how to create libraries, and next, most importantly, how to edit libraries. Editing is important, especially for those who still need the flexibility offered by subsystems but need to work in the structured environment of libraries. In addition, we show to work with libraries both interactively (point and click) and programmatically (scripting).
- Custom Libraries:
- Control Linked Block Programmatically:
Chapters:
0:00 Create a Simple Component
2:42 Why Use Libraries?
3:00 Create a Subsystem from a Component
4:01 Test the Subsystem
4:30 Importance of Component Reusability
5:34 Create a Masked Subsystem
8:51 Create a Library
10:58 Lock Library to Prevent Changes
11:39 Use Library Links
12:57 Tradeoffs of Using Libraries
13:27 Options for Making Changes to Libraries
14:07 Disable Library Links
14:56 Lock Library vs. Lock Links
16:35 Propagate Changes in the Instance back to the Library
17:53 Propagate Changes from the Library to the Instances
21:18 Control Linked Blocks Programmatically
24:43 Summary
--------------------------------------------------------------------------------------------------------
Get a free product trial:
Learn more about MATLAB:
Learn more about Simulink:
See what’s new in MATLAB and Simulink:
© 2023 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc.
See for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.