Simscape Electronics Block Libraries

Overview of Simscape Electronics Libraries

Simscape™ Electronics™ libraries provide blocks for modeling electromechanical and electrical systems within the Simulink® environment. You can also create custom components either by combining Simscape Electronics components as Simulink subsystems, or by using the Simscape language (Simscape).


Simscape Electronics follows the standard Simulink conventions where block inputs and outputs are called ports. In Simscape Electronics, each port represents a single electrical terminal.

A Simscape Electronics model can contain blocks from the standard Simscape Electronics library, from the Simscape Foundation and Utilities libraries, or from a custom library you create, using the Simscape language, based on the Simscape Foundation electrical domain (Simscape). A model can also include blocks from other Simscape add-on products, as well as Simulink blocks.

Opening Simscape Electronics Libraries

There are two ways to access Simscape Electronics blocks:

Using the Simulink Library Browser to Access the Block Libraries

You can access the blocks through the Simulink Library Browser. To display the Library Browser, type slLibraryBrowser in the MATLAB® Command Window. Then expand the Simscape entry in the contents tree.

Using the Command Prompt to Access the Block Libraries

Another way to access the block libraries is to open them individually by using the command prompt:

  • To open just the Simscape Electronics library, type elec_lib in the MATLAB Command Window.

  • To open the Simscape library (to access the utility blocks, as well as electrical sources, sensors, and other Foundation library blocks), type simscape in the MATLAB Command Window.

  • To open the main Simulink library (to access generic Simulink blocks), type slLibraryBrowser in the MATLAB Command Window.

The Simscape Electronics library window is shown in the following figure. Each icon in the window represents a library. Some of these libraries contain second-level sublibraries. Double-click an icon to open the corresponding library.

Was this topic helpful?