**4.4 Power flow program based FACTS (SimFACTS)**

The interactive FACTS program proposed is implemented in a MATLAB environment, using the GUI tool; the Simulator is capable of doing simulations for several models of FACTS Controllers. First the program allows users to choose the working language (French, Arabic or English) Fig. 21 shows the global interface to simulate the integration of different FACTS Controllers in a practical network. The user may either retrieve an existing presaved system data or start a new system formulation; due to the limited pages we only present an example of UPFC interface description. Fig. 24 displaying the UPFC parameters to be entered and adjusted by user. For example The UPFC Controller data base parameters are:

• The insertion point

222 Electrical Generation and Distribution Systems and Power Quality Disturbances

The MATLAB graphical user interface development environment, provides a set of tools for creating graphical user interfaces (GUIs). These tools greatly simplify the process of

Lay out the GUI. Using the GUIDE Layout Editor, the user can lay out a GUI easily by clicking and dragging GUI components such as panels, buttons, text fields, sliders, menus,

GUIDE automatically generates an M-file that controls how the GUI operates. The M-file initializes the GUI and contains a framework for the most commonly used callbacks for each component the commands that execute when a user clicks a GUI component. Using the Mfile editor, we can add code to the callbacks to perform the functions the user want. Fig. 22 shows the structure of the object, Fig. 23 shows the different Object contained in a GUI.

*Type of Files: \*.m and \*.fig*

*Edit* 

*Text Checkbox* 

*Figure --- Interface Object* 

*Slider* 

*Button* 

*Line* 

*Axes* 

Fig. 23. Different Object of the GUIDE

*Proprieties Callback* 

*Object* 

**4.2 Graphic User Interface tool (GUI)** 

**4.3 Program the GUI** 

Fig. 22. Object structure

designing and building GUIs. We can use the GUIDE tools to:

and so on into the layout area. GUIDE stores the GUI layout in a FIG-file.



Fig. 24. UPFC parameters input data window

Understanding Power Quality Based FACTS

**0.95**

*NSVC*=8: (10-17-19-21-22-24-27-29)

**0.5**

**0.6**

**0.7**

**0.8**

**0.9**

**Voltage (p.u)**

**1**

**1.1**

**1.2**

**1**

**1.05**

**Voltage (p.u.)**

**1.1**

Using Interactive Educational GUI Matlab Package 225

**Without SVC With SVC**

> **Bus1 Bus2 Bus3 Bus4 Bus5 Bus6 Bus7 Bus8 Bus9 Bus10 Bus11 Bus12 Bus13 Bus14 Bus15 Bus16 Bus17 Bus18 Bus19 Bus20 Bus21 Bus22 Bus23 Bus24 Bus25 Bus26 Bus27 Bus28 Bus29 Bus30**

**0 5 10 15 20 25 30**

**Bus N°**

**Without Compensation** 

**0.5 1 1.5 2 2.5**

**Loading Parameter** λ **(p.u.)**

Fig. 25. Voltage profiles normal condition: case: with and without SVC installation.

λ**=2.9449 p.u**

Fig. 26. Voltage profiles with continuation power flow: case: Without SVC
