Font Size: a A A

Current Comparator Bridge Automatic Code Technology

Posted on:2015-01-15Degree:MasterType:Thesis
Country:ChinaCandidate:L ChengFull Text:PDF
GTID:2272330452963922Subject:High Voltage and Insulation Technology
Abstract/Summary:PDF Full Text Request
The development process of model-based design created a unifieddevelopment and testing platform for developers, which improved theefficiency of development of highly integrated complex systems by usingmodeling and simulation methods. Through using automatic codetechnology, developers could be free from the complex manualprogramming, and focused on algorithm logic reasoning and performancetests, while the computer automatically finished the embedded C codegeneration.The development process of model-based design significantlyimproved the development efficiency, which has broad applicationprospects.Based on the development process of model-based design, usingMatlab/Simulink and taking current comparator bridge as our objection,analyzed its features and built its test platform.This platform integratedbridge flux-balance system, data acquisition module, algorithm moduleand relative inaccuracy analysis and judge module.In this module‘ssecondary subsystem, by studying the physical simulation module andSimulink interface technology, designed amplifier multiplier module andthe current-voltage converter module which based on the specifiedoperational amplifier, to realize the circuit board hardware-in-the-loopsimulation and expand the modeling capacity of complex systems.Using the state machine flowchart (Stateflow), designed DiscreteFourier Transform (DFT) algorithm and current comparator bridgeautomatic balancing algorithm to calculate capacitance value of themeasured capacitance and dielectric loss tan. Simulated all kind ofcircumstances in time applications such as system voltage initial phasenon-zero, power system frequency deviation and power system voltageharmonic on this test platform to verify the accuracy and stability of thealgorithm code. Through the correction value returning, error analysis and iterative determination, the test platform can achieve simulationparameters automatically correction, algorithms‘performance real-timeanalysis and iteration intelligent judgment.The core of this study is the use of embedded code generation tool(Real-Time Workshop Embedded Coder, RTW-EC), which canautomatically generate algorithm‘s embedded C code. Compared andanalyzed the efficiency and performance of Stateflow algorithmsubsystems and embedded C code testing the software-in-the-loopmodules, completed the code correctness and validity verification anddemonstrate the project‘s feasibility and completeness.The test results verified the consistent accuracy and performancebetween the embedded C code and Stateflow code, which can be appliedto the target system. Based on the development process of model-baseddesign can greatly accelerate the development process of algorithm codefor the embedded systems and improve development efficiency.
Keywords/Search Tags:Simulink/Stateflow, Simulation test platform, Automaticbalancing algorithm, Automatic code technology, Software-in-the-loop
PDF Full Text Request
Related items