|On this page…|
SimElectronics® libraries provide blocks for modeling electromechanical and electrical systems within the Simulink® environment. You can also create custom components either by combining SimElectronics components as Simulink subsystems, or by using the Simscape™ language.
Note: SimElectronics follows the standard Simulink conventions where block inputs and outputs are called ports. In SimElectronics, each port represents a single electrical terminal.
A SimElectronics model can contain blocks from the standard SimElectronics 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. A model can also include blocks from other Simscape add-on products, as well as Simulink blocks.
There are two ways to access SimElectronics blocks:
You can access the blocks through the Simulink Library Browser. To display the Library Browser, click the Simulink Library button in the toolbar of the MATLAB® desktop. Alternatively, you can type simulink in the MATLAB Command Window. Then expand the Simscape entry in the contents tree.
Another way to access the block libraries is to open them individually by using the command prompt:
To open just the SimElectronics 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 simulink in the MATLAB Command Window.
The SimElectronics 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.