2010 2nd International Corence on Education Technolo and Computer (ICET Development of Visual Circuit Calculation Software Based on MATLAB GUI Jingxiu Lee Department of Computer and Information Engineering Luoyang Institute of Science Technology Luoyang, China e-mail: [email protected] Abstract-MA TLAB has been widely applied in circuit analysis calculation as high-powered value calculation software. Because it is inefficient to calculate by programming, and user must master MATLAB language, so the visual circuit calculation software uses object-oriented graphic technology and GUI to automatically compute and save value solution, resolution and oscillogram. Results of experiments show that this soſtware can calculate accurately and effectively, and be easy to master, greatly improve efficiency of circuit calculation. Kwords-MATLAB; GUIDE; Tabular matr; Visualization; Circuit calculations I. INTRODUCTION Computer-aided circuit analysis has been a powerl and widely used assistant tool of circuit analysis and des . ign accompied with e development of modem elecIcal technology and computer. TLAB has already bee � a powerl tool in developing circuit analysis calculatIOn soſtware, which can process scientific calculation, sign calculation and graphic process. Meanwhile it c an figure out some peculiar problems which are out of the ability of Multisim [31 .But now, circuit analysis calculation of MA TLAB mainly aims at particular problems, not for all. From the trends of soſtware development, it is can be seen that iendly user interface has been basic interactive portal. The graphic user interface design tool of TLAB- GUIDE, which supports GUI, can design easily-manipulated and convenient interface with menus and conols. II. CIRCUIT EQUATION Circuit calculation soſtware requires that e computer can automatically found equations and solve em in order to realize ccuit auto-computation. Nowadays, there are many easily-solved circuit analysis methods applied for large complicated circuit. Table matrix can directly calculate brch voltage, branch current and node voltage without any trsfos. In additional, it sees a organ as a branch, so ere is no any limitation of organ types. According to table matrix, table matrix equation is as follows: 11 0 -A-T],U b l , 0 l l �b �b � l� r l �b J (I) Weijuan Zhang Department of Computer and Information Engineering Luoyang Institute of Science Technology Luoyang, China e-mail: [email protected] A is related matrix, Yb and Zb are matrix of describing org features, Wb is matrix of describing electric power features, Vb' Ib and Vn respectively is branch voltage, branch current and node voltage. Sub-matrix in coefficient matrix are all square matrices. So e equation above also can be written as TX=B, whose solves is X=T I B. III. SOFTWARE SYSTEM STRUCTURE AND FUNCTION DESIGN Generally, circuit calculation can be included into computation of DC Steady, AC Steady and dynamic circuit. Therefore, the soſtware package composes of DC calculation platform, AC calculation platform and dynamic circuit calculation platfo. Each model can input circuit infoation, display results, save results and provide help. AC circuit and dynamic circuit calculation platfo also can display wavefo to help user observe dynamic changes. There are two methods of data input: one is platform input, the oer is importing om Excel. Results of DC circuit and AC circuit calculation are number, which will be saved in Excel; dynamic circuit calculation results are resolution, which will be saved in text. The scope of wavefo display can be fixed also be adjusted. AC circuit waveform is periodic sinusoidal quantity whose scope is fixed; wavefo of dynamic circuit is non- periodic whose scope can be adjusted to observe waveform widely. IV. SOFTWARE FUNCTION IMPLEMENT Soſtwe nction implements are realized by executg callback nction of controls and menu. The foundation of circuit equation and calculation programme flowchart is illustrated as figure 1. . Because all of ree circuits founded in each calculatIOn model are different, coefficient matrix Yb, Zb are different too. For DC, Yb and Zb respectively represent conductivity and resistance of organ. Meanwhile, model founded by AC is vector model, so Yb and Zb respectively represent admittance and impedance, but for e calculation circuit model founded by dynamic circuit, Yb and Zb respectively represent calculation admittance and calculation impedance. The calculation programme and circuit equations which are coded according to flowchart in figure2, are all saved as .m file for other programme. 978-1-4244-6370-11$26.00 © 2010 IEEE V3-113