基于RTW的AMT代碼自動生成技術(shù)研究
本文選題:AMT 切入點(diǎn):RTW 出處:《山東大學(xué)》2012年碩士論文
【摘要】:隨著汽車電子控制系統(tǒng)的發(fā)展,整車集成了越來越多的功能,汽車電子控制系統(tǒng)越來越復(fù)雜。汽車電控技術(shù)以嵌入式軟件為依托,功能的日趨復(fù)雜給軟件開發(fā)帶來了極大的難度,傳統(tǒng)的汽車電控系統(tǒng)軟件開發(fā)模式越來越受到限制。AMT技術(shù)是自動變速技術(shù)的發(fā)展方向,是現(xiàn)今各大汽車廠家著重發(fā)展的核心。因此,如何尋求一種快速、高效的開發(fā)流程是各大廠家一直努力追求的目標(biāo)。本文針對AMT系統(tǒng)的典型特點(diǎn),介紹了基于模型設(shè)計的代碼生成方法,并使用Matlab/RTW代碼生成工具實(shí)現(xiàn)AMT系統(tǒng)的代碼生成。 本文首先對AMT技術(shù)和汽車電子軟件的發(fā)展做簡要介紹,并分析了傳統(tǒng)開發(fā)模式存在的弊端,以及基于模型設(shè)計的優(yōu)勢所在。其次介紹了AMT系統(tǒng)的硬件平臺設(shè)計方案,以及軟件系統(tǒng)架構(gòu)。分析了AMT系統(tǒng)基本工作原理。然后研究了Matlab/RTW的二次開發(fā)技術(shù),主要包括如何編寫S函數(shù)以及TLC文件等知識,并利用RTW工具箱開發(fā)符合本文AMT硬件平臺的設(shè)備驅(qū)動模塊,完成了對設(shè)備底層驅(qū)動模塊的封裝,并研究生成的代碼。本文還根據(jù)AMT系統(tǒng)的典型事件驅(qū)動架構(gòu),對系統(tǒng)應(yīng)用層進(jìn)行層次劃分,并使用MATLAB/Stateflow進(jìn)行AMT系統(tǒng)建模。完成了對模型的代碼生成以及整合,對生成的代碼進(jìn)行臺架和道路測試,并分析采集的試驗(yàn)數(shù)據(jù),驗(yàn)證模型代碼的可行性。 試驗(yàn)證明,采用模型化的設(shè)計方法,結(jié)構(gòu)清晰,方便進(jìn)行功能擴(kuò)展與裁剪。代碼生成技術(shù)可以加快開發(fā)流程,減少手工編寫代碼的勞動強(qiáng)度,同時避免手動編寫產(chǎn)生的人為錯誤。生成的代碼清晰、高效,接近手寫代碼。具有一定實(shí)用性。
[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.
【學(xué)位授予單位】:山東大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2012
【分類號】:TP368.1;TP273
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 文凌波,王玉海,李興坤,薛春宇;基于MATLAB/STATEFLOW的AMT控制策略仿真系統(tǒng)[J];車輛與動力技術(shù);2005年01期
2 汪偉華;時國平;;車輛機(jī)械式自動變速器控制系統(tǒng)的研制[J];工業(yè)儀表與自動化裝置;2009年04期
3 時亞忠;王旭永;張紅偉;;采用C MEX S函數(shù)編寫xPC環(huán)境下設(shè)備驅(qū)動模塊的研究[J];測控技術(shù);2006年07期
4 戴海峰;魏學(xué)哲;孫澤昌;;V-模式及其在現(xiàn)代汽車電子系統(tǒng)開發(fā)中的應(yīng)用[J];機(jī)電一體化;2006年06期
5 李洪斌;張承瑞;;基于量子框架的開放式汽車電控系統(tǒng)體系結(jié)構(gòu)[J];吉林大學(xué)學(xué)報(工學(xué)版);2006年02期
6 馮江波;劉亞軍;;與AUTOSAR兼容的Matlab/Simulink自動代碼生成技術(shù)[J];佳木斯大學(xué)學(xué)報(自然科學(xué)版);2011年06期
7 趙彥斌;鐘再敏;;基于代碼自動生成技術(shù)的汽車電子實(shí)時控制軟件開發(fā)[J];計算機(jī)輔助工程;2008年03期
8 王亞寧;董小瑞;;汽車電子技術(shù)現(xiàn)狀及發(fā)展趨勢展望[J];機(jī)械管理開發(fā);2007年01期
9 李秀萍;董云衛(wèi);;模型驅(qū)動的嵌入式仿真系統(tǒng)設(shè)計[J];計算機(jī)工程;2010年16期
10 王奇霞,喬海泉,梁加紅;在RtLinux下利用S函數(shù)和TLC開發(fā)內(nèi)嵌驅(qū)動程序[J];計算機(jī)仿真;2003年03期
相關(guān)博士學(xué)位論文 前2條
1 李洪斌;基于量子框架的開放式重型汽車AMT系統(tǒng)關(guān)鍵技術(shù)研究[D];山東大學(xué);2006年
2 李曉軍;基于量子框架的開放式汽車電控系統(tǒng)體系架構(gòu)及其應(yīng)用研究[D];山東大學(xué);2008年
相關(guān)碩士學(xué)位論文 前7條
1 解洪林;AMT故障自診斷系統(tǒng)研究[D];山東大學(xué);2011年
2 蔡毅;基于MATLAB/RTW實(shí)時仿真系統(tǒng)的設(shè)計與研究[D];天津大學(xué);2005年
3 呂攀;SmartAMT:基于SmartOSEK OS的汽車電控機(jī)械式自動變速箱控制系統(tǒng)[D];浙江大學(xué);2006年
4 高權(quán);基于Simulink和Stateflow建模的嵌入式軟件開發(fā)平臺研究[D];電子科技大學(xué);2008年
5 趙家強(qiáng);基于UML的AMT系統(tǒng)建模與實(shí)現(xiàn)[D];合肥工業(yè)大學(xué);2008年
6 蘭欣;電控柴油機(jī)控制模擬平臺的研究[D];山東大學(xué);2008年
7 王彪;面向汽車電子的嵌入式軟件開發(fā)基本平臺關(guān)鍵技術(shù)研究與實(shí)現(xiàn)[D];電子科技大學(xué);2010年
,本文編號:1710187
本文鏈接:http://www.sikaile.net/kejilunwen/jisuanjikexuelunwen/1710187.html