Find and add blocks to your model
The Library Browser opens and displays a tree view of the Simulink® block libraries on your system.
As you click libraries in the tree, the contents of the library appear in the right pane. Use the Library Browser to locate blocks and visuals (annotations) to add to your model. Navigate the libraries using the tree structure in the left pane or by double-clicking sublibraries in the right pane. Sublibraries, blocks, and text and image annotations can appear in the right pane. Pause on any item to see a description.
The Recently Used Blocks structure at the bottom of the tree contains the blocks and libraries from the supplied libraries that you used most recently.
When you find the item you are looking for, you can drag it into your model, or you can select it and use the context menu to add it.
On the Home tab, click Simulink, and choose a model template. In the new model, click the Library Browser button .
In the MATLAB® command window, enter
You can search for blocks and annotations using the search controls. To use regular expressions, whole word search, or case-sensitive search, use the Search for subsystems, blocks, and annotations button arrow . For annotations, you can search for any of the text in the annotation or any part of its description.
By default, library contents appear in alphabetical order. Subsystems appear first, then blocks, and then annotations. If you prefer to view the contents of the libraries in the order set by the developer of the library, right-click the right pane and select Sort in library model order. This setting stays in effect from session to session.
To return to the alphabetical order, right-click and select Sort in alphabetical order. Depending on how the library designer sets up the library, some items might not appear in alphabetical order. For example, in the Simulink library, the Additional Math & Discrete library appears as the last item regardless of the sorting option you choose.
You can create your own libraries and, optionally, have them appear in the Library Browser. For more information, see Create a Custom Library.
As you build a model, you can set parameters and properties on model elements. For example, you can set parameters and properties for blocks that affect how the block functions. You can also set properties on Stateflow® charts, signal lines, visual elements such as annotations, and on the model.
Based on your workflow and goals, set parameters and properties using:
The Property Inspector, which stays open in the editor as you work and updates based on the current selection
A dialog box that is associated with an element, such as a specific block
The Model Data Editor, which stays open and displays information about signals, states, and algorithmic block parameters (for instances, gains and filter coefficients) in a table
For blocks whose parameter value appears on the block icon, you can select the block, pause on the value, and edit the value directly. For more information, see Set Block Parameters.
You can use keyboard shortcuts to interact with the Library Browser.
|Open Library Browser from a model||Ctrl + Shift + L|
|Move selection down in the Blocks or Libraries pane||Down arrow key|
|Move selection down in the Blocks or Libraries pane||Up arrow key|
|Expand a node in the Libraries pane||Right arrow key|
|Collapse a node in the Libraries pane||Left arrow key|
|Refresh Libraries pane||F5|
|Show parent library in Blocks pane||Esc|
|Select a block found with the search tool in the Blocks pane||Ctrl + R|
|Insert the selected block in a new model||Ctrl + i|
|Increase zoom in the Blocks pane||Ctrl + +|
|Decrease zoom in the Blocks pane||Ctrl + -|
|Reset zoom to default in the Blocks pane||Alt + 1|
|Find a block||Ctrl + F|
|Close Library Browser||Ctrl + W|