Library Browser

Find and add blocks to your model

Description

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.

Open the Library Browser

  • 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 slLibraryBrowser.

Examples

expand all

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.

Related Examples

Tips

You can use keyboard shortcuts to interact with the Library Browser.

TaskAction
Open Library Browser from a modelCtrl + Shift + L
Move selection down in the Blocks or Libraries paneDown arrow key
Move selection down in the Blocks or Libraries paneUp arrow key
Expand a node in the Libraries paneRight arrow key
Collapse a node in the Libraries paneLeft arrow key
Refresh Libraries paneF5
Show parent library in Blocks paneEsc
Select a block found with the search tool in the Blocks paneCtrl + R
Insert the selected block in a new modelCtrl + i
Increase zoom in the Blocks paneCtrl + +
Decrease zoom in the Blocks paneCtrl + -
Reset zoom to default in the Blocks paneAlt + 1
Find a blockCtrl + F
Close Library BrowserCtrl + W
Introduced before R2006a