This master thesis deals with the development of embedded software for control of permanent magnet synchronous motor using Malab/Simulink enviroment.
With model based design models are reused troughout multiple phases of software development process. Models can be used for design, implementation and verification of requirements. Software consists of software units, which are integrated trough software architecture. Tests in the loop can be employed to test units, integrations or complete embedded software before performing test on real system in real enviroment. In this work model in the loop, software in the loop and processor in the loop concepts were used to test software unit and software integration of permanent magnet synchronous motor control algorithm. For this purpose model of enviroment was realized as magnetically linear dynamic model of permanent magnet synchronous motor. Control algortithm model was realized as field oriented control using maximum torque per ampere strategy.
Control algorithm is part of complete embedded software, which is from software architecture point of view, designed as model in Simulink enviroment. Device drivers and communication protocols in the form of C source code are integrated into model of embedded software as models using Legacy Code Tool. Embedded software C source code is generated from embedded software model using code generator. Microcontroler initialization tool is used to generate microcontroller initialization C source code. Source code from different sources is integrated in integrated development enviroment, where is compiled. Complete embedded software is further tested on real system.
|