Showing posts with label Simulink. Show all posts
Showing posts with label Simulink. Show all posts

Building the Electrical Circuit with powerlib Library

The graphical user interface makes use of the Simulink functionality to interconnect various electrical components. The electrical components are grouped in a special library called powerlib.

Open the SimPowerSystems library by entering the following command at the MATLAB prompt:


powerlib

You can open these libraries to produce the windows containing the blocks to be copied into your circuit. Each component is represented by a special icon having one or several inputs and outputs corresponding to the different terminals of the component.

Interact with Scope figure properties-Change the colour of background of scope

The ability to interact with Scope figure properties is not available
because the handle of the Scope figure is not turned on. To turn the
handle of your Scope figure on, and show the menus, type the following
at the MATLAB command prompt (after opening the Scope figure):

shh = get(0,'ShowHiddenHandles');
set(0,'ShowHiddenHandles','On')
set(gcf,'menubar','figure')
set(gcf,'CloseRequestFcn','closereq')
set(gcf,'DefaultLineClipping','Off')
set(0,'ShowHiddenHandles',shh)


This will allow you to manipulate your Scope figure just like any
other MATLAB figure, allowing you to make changes such as
- Background/foreground color
- Line color
- Add text or a legend
- Add a print icon
- Print the graph