基于RTW的AMT代碼自動生成技術研究
本文選題:AMT 切入點:RTW 出處:《山東大學》2012年碩士論文
【摘要】:隨著汽車電子控制系統(tǒng)的發(fā)展,整車集成了越來越多的功能,汽車電子控制系統(tǒng)越來越復雜。汽車電控技術以嵌入式軟件為依托,功能的日趨復雜給軟件開發(fā)帶來了極大的難度,傳統(tǒng)的汽車電控系統(tǒng)軟件開發(fā)模式越來越受到限制。AMT技術是自動變速技術的發(fā)展方向,是現(xiàn)今各大汽車廠家著重發(fā)展的核心。因此,如何尋求一種快速、高效的開發(fā)流程是各大廠家一直努力追求的目標。本文針對AMT系統(tǒng)的典型特點,介紹了基于模型設計的代碼生成方法,并使用Matlab/RTW代碼生成工具實現(xiàn)AMT系統(tǒng)的代碼生成。 本文首先對AMT技術和汽車電子軟件的發(fā)展做簡要介紹,并分析了傳統(tǒng)開發(fā)模式存在的弊端,以及基于模型設計的優(yōu)勢所在。其次介紹了AMT系統(tǒng)的硬件平臺設計方案,以及軟件系統(tǒng)架構。分析了AMT系統(tǒng)基本工作原理。然后研究了Matlab/RTW的二次開發(fā)技術,主要包括如何編寫S函數以及TLC文件等知識,并利用RTW工具箱開發(fā)符合本文AMT硬件平臺的設備驅動模塊,完成了對設備底層驅動模塊的封裝,并研究生成的代碼。本文還根據AMT系統(tǒng)的典型事件驅動架構,對系統(tǒng)應用層進行層次劃分,并使用MATLAB/Stateflow進行AMT系統(tǒng)建模。完成了對模型的代碼生成以及整合,對生成的代碼進行臺架和道路測試,并分析采集的試驗數據,驗證模型代碼的可行性。 試驗證明,采用模型化的設計方法,結構清晰,方便進行功能擴展與裁剪。代碼生成技術可以加快開發(fā)流程,減少手工編寫代碼的勞動強度,同時避免手動編寫產生的人為錯誤。生成的代碼清晰、高效,接近手寫代碼。具有一定實用性。
[Abstract]:With the development of automotive electronic control system, the whole vehicle integrates more and more functions, and the automotive electronic control system becomes more and more complex.The automotive electronic control technology relies on embedded software, and the increasingly complex function brings great difficulty to the software development. The traditional software development mode of automobile electronic control system is more and more restricted. AMT technology is the development direction of automatic speed change technology.Is now the major automobile manufacturers focus on the development of the core.Therefore, how to seek a rapid and efficient development process is the goal that major manufacturers have been striving to pursue.According to the typical characteristics of AMT system, this paper introduces the code generation method based on model design, and uses Matlab/RTW code generation tool to realize code generation of AMT system.This paper first introduces the development of AMT technology and automotive electronic software, and analyzes the disadvantages of traditional development mode and the advantages of model-based design.Secondly, the hardware platform and software architecture of AMT system are introduced.The basic working principle of AMT system is analyzed.Then, the secondary development technology of Matlab/RTW is studied, including how to write S function and TLC file, and how to develop the device driver module according to the AMT hardware platform by using RTW toolbox, and complete the encapsulation of the device bottom driver module.And study the generated code.According to the typical event-driven architecture of AMT system, this paper divides the application layer into layers, and uses MATLAB/Stateflow to model the AMT system.The code generation and integration of the model are completed, the generated code is tested on a bench and a road, and the collected test data are analyzed to verify the feasibility of the model code.It is proved by experiment that the structure is clear and the function can be extended and clipped easily by using the model design method.Code generation technology can speed up the development process, reduce the labor intensity of manual coding, and avoid human errors caused by manual writing.The generated code is clear, efficient, and close to handwritten code.It has certain practicability.
【學位授予單位】:山東大學
【學位級別】:碩士
【學位授予年份】:2012
【分類號】:TP368.1;TP273
【參考文獻】
相關期刊論文 前10條
1 文凌波,王玉海,李興坤,薛春宇;基于MATLAB/STATEFLOW的AMT控制策略仿真系統(tǒng)[J];車輛與動力技術;2005年01期
2 汪偉華;時國平;;車輛機械式自動變速器控制系統(tǒng)的研制[J];工業(yè)儀表與自動化裝置;2009年04期
3 時亞忠;王旭永;張紅偉;;采用C MEX S函數編寫xPC環(huán)境下設備驅動模塊的研究[J];測控技術;2006年07期
4 戴海峰;魏學哲;孫澤昌;;V-模式及其在現(xiàn)代汽車電子系統(tǒng)開發(fā)中的應用[J];機電一體化;2006年06期
5 李洪斌;張承瑞;;基于量子框架的開放式汽車電控系統(tǒng)體系結構[J];吉林大學學報(工學版);2006年02期
6 馮江波;劉亞軍;;與AUTOSAR兼容的Matlab/Simulink自動代碼生成技術[J];佳木斯大學學報(自然科學版);2011年06期
7 趙彥斌;鐘再敏;;基于代碼自動生成技術的汽車電子實時控制軟件開發(fā)[J];計算機輔助工程;2008年03期
8 王亞寧;董小瑞;;汽車電子技術現(xiàn)狀及發(fā)展趨勢展望[J];機械管理開發(fā);2007年01期
9 李秀萍;董云衛(wèi);;模型驅動的嵌入式仿真系統(tǒng)設計[J];計算機工程;2010年16期
10 王奇霞,喬海泉,梁加紅;在RtLinux下利用S函數和TLC開發(fā)內嵌驅動程序[J];計算機仿真;2003年03期
相關博士學位論文 前2條
1 李洪斌;基于量子框架的開放式重型汽車AMT系統(tǒng)關鍵技術研究[D];山東大學;2006年
2 李曉軍;基于量子框架的開放式汽車電控系統(tǒng)體系架構及其應用研究[D];山東大學;2008年
相關碩士學位論文 前7條
1 解洪林;AMT故障自診斷系統(tǒng)研究[D];山東大學;2011年
2 蔡毅;基于MATLAB/RTW實時仿真系統(tǒng)的設計與研究[D];天津大學;2005年
3 呂攀;SmartAMT:基于SmartOSEK OS的汽車電控機械式自動變速箱控制系統(tǒng)[D];浙江大學;2006年
4 高權;基于Simulink和Stateflow建模的嵌入式軟件開發(fā)平臺研究[D];電子科技大學;2008年
5 趙家強;基于UML的AMT系統(tǒng)建模與實現(xiàn)[D];合肥工業(yè)大學;2008年
6 蘭欣;電控柴油機控制模擬平臺的研究[D];山東大學;2008年
7 王彪;面向汽車電子的嵌入式軟件開發(fā)基本平臺關鍵技術研究與實現(xiàn)[D];電子科技大學;2010年
,本文編號:1710187
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1710187.html