Simulation Approach with MATLAB GUI for Teaching Electronic Engineering Subjects

The four main core of undergraduate electronic engineering course can be considered as Electronics, Computer Application, Control and Communication. The objective of this research was the development of software approaches in teaching undergraduate Electronic Engineering Candidates to cover the practice of what and how Electronics, Computer Application, Control and Communication processes are going on. This paper describes a simple computer aided design approach for analysis of various system related to electronic engineering. The GUI design of this paper is mainly focus on teaching electronic circuits analysis, control system analysis and RFID antenna design. The simulation program for creating a GUI that linking sub-program of each fields is developed using Matlab GUI. This paper is just a portion of the research “Design and Development of Easysuit Software Approaches for Electronic Engineering Subjects using Matlab”. All result of a sample GUI program that students can use to analyse the behavior of circuits, control and communication systems.


I. INTRODUCTION
MATLAB is a widely used tool in the engineering community. With all the features of MATLAB, with or without toolboxes, has come to occupy an indisputable position in the list of available software in all technical institutions. The most common used Software for teaching Electronic Engineering Subjects are MATLAB, Simulink and LabView, C,C addition to standard circuits, electronics, and power systems software packages such as Or @ IJTSRD | Available Online @ www.ijtsrd.com | Volume -2 | Issue -4 | May-Jun 2018 The four main core of undergraduate electronic engineering course can be considered as Electronics, Computer Application, Control and Communication.
research was the development of software approaches in teaching undergraduate Electronic Engineering Candidates to cover the practice of what and how Electronics, Computer Application, Control and Communication processes a simple computeraided design approach for analysis of various system related to electronic engineering. The GUI design of this paper is mainly focus on teaching electronic circuits analysis, control system analysis and RFID n program for creating a program of each fields is developed using Matlab GUI. This paper is just a portion of the research "Design and Development of Easysuit Software Approaches for Electronic All performance result of a sample GUI program that students can use to analyse the behavior of circuits, control and GUI, Circuits, Control, RFID antenna, tool in the engineering community. With all the features of MATLAB, with or without toolboxes, has come to occupy an indisputable position in the list of available software in all technical institutions. The most common used c Engineering Subjects are MATLAB, Simulink and LabView, C,C ++ in electronics, and power systems software packages such as Or CAD, MultiSim and Proteus. Instructors make use of Software that apply to specific advanced Elect Engineering courses such as signals and systems, electro magnetics, antenna engineering, among others. A MATLAB/GUI based tool in Matlab software provides a user-friendly interface to help the student understand the background theories of components and system analysis.
Since it is already easily available in institutions, in this paper it is proposed to use MATLAB for creating a GUI-based package for effective teaching of electronics engineering subjects: circuits, control and antenna design. Firstly, the author considered many systems to simulate and design in GUI. But, in this paper, the main portion of development of a Mat lab GUI application in three electronic engineering areas for the purpose of system analysis using Matlab.
Three system analysis problems: Antenna Design and analyis, RLC circuit analysis and Feedback Control System's Phase and Gain margin Analysis are carried out by this paper as a result.

II. IMPLEMENTATION PROCEDURES
After literature reviews and methodology considerations, the implementation simulation approach paper can be described as follows: 1. Development of GUI with three pushbuttons that will seprate three areas of study. 2. Detail program developments are followed for each part of areas, antenna, circuit 3. Testing and redesigning m followed. Instructors make use of Software that apply to specific advanced Electronic Engineering courses such as signals and systems, electro magnetics, antenna engineering, among others. A MATLAB/GUI based tool in Matlab software friendly interface to help the student understand the background theories of components Since it is already easily available in institutions, in this paper it is proposed to use MATLAB for creating based package for effective teaching of electronics engineering subjects: circuits, control and tly, the author considered many systems to simulate and design in GUI. But, in this paper, the main portion of development of a Mat lab GUI application in three electronic engineering areas for the purpose of system analysis using Matlab. A. Development of MATLAB GUI There are 5 steps in build the MATLAB GUI. First Use a MATLAB tool called guide (GUI Development Environment) to layout the components that shown in figure-1. This tool allows a programmer to layout the GUI, selecting and aligning the GUI components to be placed in it. Next is Use a MATLAB tool called the Property Inspector (built into guide) to give each component a name (a "tag") and to set the characteristics of each component, such as its color, the text it displays, and so on.

Figure-1 MATLAB GUIDE Layout
After that, save the figure to a file. When the figure is saved, two files will be created on disk with the same name but different extents. The fig file contains the actual GUI that has been created, and the M-file contains the code to load the figure and skeleton call backs for each GUI element. These two files usually reside in the same directory. They correspond to the tasks of laying out and programming the GUI. When you lay out the GUI in the Layout Editor, your work is stored in the FIG-file. When you program the GUI, your work is stored in the corresponding M-file.

Figure-2 Example GUI
After laying out the GUI component and set the property, the GUI will be look like in figure-2 for example according to the user creativity. And finally write code to implement the behavior associated with each callback function in m-files as shown in figure-3. A callback is a function that writes and associates with a specific GUI component or with the GUI figure which is often called event-driven programming. This last step is the difficult one and has to make an extra reading on how to write the coding before the GUI component can perform some task that user desire.

B. Tasks in Simulation Program
There are three tasks of m-file program in this paper, that are connected with GUI. The first task is the RFID antenna analysis and design. The second one is analysis of RLC circuit. The last one is Margin analysis of feedback control system. The code is to write controls how the GUI responds to events such as button clicks, slider movement, menu item selection, or the creation and deletion of components. This programming takes the form of a set of functions, called callbacks, for each component and for the GUI figure itself.
A callback is a function that writes and associates with a specific GUI component or with the GUI figure. It controls GUI or component behavior by performing some action in response to an event for its component. A. Study about functions of matlab Each component, and the GUI itself, is associated with one or more User-written routines known as callbacks. The execution of each callback is triggered by a particular user action such as a push button, mouse click, selection of a menu item, or the cursor passing over a component. We, as the creator of the GUI, provide these callbacks. All the processes (mfiles) that we used for text, push buttons and/or panel, etc. are becom as a function of our main GUI m-file program. So, the functions such as varrargin need to be study before bulding a GUI. "varargin" maeans Variable length input argument list and it allows any number of arguments to a function. The variable "varargin" is a cell array containing the optional arguments to the function. For example, the function, function myplot (x,varargin) Plot (x,varargin{:}) collects all the inputs starting with the second input into the variable "varargin". MYPLOT uses the comma-separated list syntax varargin{:} to pass the optional parameters to plot. "handle" is a superclass of all handle classes. A handle is an object that indirectly references its data. When a handle is constructed, an object with storage for property values is created. The constructor returns a handle to this object. "Callback" functions require at least two input arguments. The first argument is the serial port object. The second argument is a variable that captures the event information. This event information pertains only to the event that caused the "callback" function to execute.

B. Matlab GUI Development
The GUI layout using "guide" and by chosing One texts, one axis and three push buttons for our desired GUI window, the layout become as shown in figure

IV. CONCLUSION
The Simulation Approach of GUI in the MATLAB environment has contributed to improved teaching and learning in Under Engineering Subjects by cases study, performance analysis and practicle testing processess. We will development various design analysis related systems and communications.