基于Stateflow的空氣消毒器設(shè)計
發(fā)布時間:2019-07-09 09:57
【摘要】:隨著電子產(chǎn)品的發(fā)展,嵌入式系統(tǒng)應用越來越廣泛,功能也日益強大,人們對電子類產(chǎn)品的需求逐漸增大,功能和要求也越來越多,控制軟件的規(guī)模與系統(tǒng)的邏輯和復雜性也隨之增加。其中有些嵌入式系統(tǒng)是基于復雜邏輯控制的事件響應的,這類系統(tǒng)用傳統(tǒng)的開發(fā)手段既費時又費力,,維護起來也相當麻煩。開發(fā)者開始思考新的開發(fā)手段,針對于軟件開發(fā)的這種需求,MATLAB推出了基于系統(tǒng)建模的Simulink和Stateflow工具,Stateflow是集成Simulink圖形化設(shè)計與開發(fā)的工具,運用Stateflow進行邏輯系統(tǒng)的建模,可以使產(chǎn)品的開發(fā)周期極大地縮短,維護起來也更加方便。 本文首先介紹了Simulink基于模型設(shè)計的過程,什么是有限狀態(tài)機,然后介紹了邏輯系統(tǒng)建模Stateflow圖形化設(shè)計與開發(fā)工具,以及GUI用戶界面圖形的設(shè)計與其開發(fā)環(huán)境,最后基于Stateflow完成對空氣清新器設(shè)計的實例 空氣清新器實例根據(jù)客戶需求做出前期的需求分析,主要采用ST公司的STM8S105S68位超低功耗芯片作為主控芯片,搭建硬件系統(tǒng)平臺的主控板。空氣消毒器實際上是通過遙控器對它消毒模式及時間進行操作,相當于事件響應系統(tǒng)或者說是動態(tài)變換系統(tǒng),軟件平臺搭建利用狀態(tài)流Stateflow通過創(chuàng)建空氣消毒器的主控狀態(tài)圖、按鍵狀態(tài)圖和繼電器狀態(tài)圖進行控制系統(tǒng)狀態(tài)的切換,遙控器控制部分通過Simulink模型以及運用GUIDE設(shè)計遙控器界面,對遙控器控制的事件驅(qū)動系統(tǒng)進行建模和仿真,從而實現(xiàn)空氣消毒器復雜邏輯系統(tǒng)的建模,使得空氣清新器系統(tǒng)的設(shè)計更加直觀簡潔,易于維護,再利用Real-Time Workshop工具生成目標代碼。最后對論文進行了工作總結(jié)與展望。
文內(nèi)圖片:
圖片說明:Simulink基本模塊庫
[Abstract]:With the development of electronic products, the application of embedded system is becoming more and more extensive and the function is becoming more and more powerful. Some embedded systems are based on the event response of complex logic control. The developer began to think about the new development means, aiming at the demand of software development, the Simulink and the Staeflow tool based on the system modeling are introduced in the MATLAB, and the Stateflow is a tool for graphical design and development of the integrated Simulink, and the modeling of the logic system is carried out by using the Stateflow, so that the development cycle of the product can be greatly shortened, And the maintenance is more convenient. This paper first introduces the process of Simulink based on the model design, what is the finite state machine, then introduces the modeling of the logic system and the development tool, and the design of the GUI user interface graph and its development ring. where the air freshener is designed based on Stateful The example of the air freshener is based on the demand of the customer, and the STM8S105S68 bit ultra-low power chip of ST company is used as the main control chip, and the hardware system platform is set up. The main control board. The air sterilizer is in fact operated by the remote controller to the disinfection mode and time, which is equivalent to the event response system or the dynamic transformation system, and the software platform sets up the main control for creating the air sterilizer by using the state flow Statulow the state diagram, the key state diagram and the relay state diagram are used for switching the state of the control system; the control part of the remote controller is used for modeling and simulating the event driven system controlled by the remote controller through the Simulink model and the GUI design remote controller interface so as to realize the complex logic system of the air sterilizer The modeling of the air freshener system makes the design of the air freshener system more intuitive and simple, is easy to maintain, and uses the Real-Time Workshop tool to generate the mesh. Standard code. Finally, a summary of the work is carried out
【學位授予單位】:吉林大學
【學位級別】:碩士
【學位授予年份】:2013
【分類號】:TP368.1
文內(nèi)圖片:
圖片說明:Simulink基本模塊庫
[Abstract]:With the development of electronic products, the application of embedded system is becoming more and more extensive and the function is becoming more and more powerful. Some embedded systems are based on the event response of complex logic control. The developer began to think about the new development means, aiming at the demand of software development, the Simulink and the Staeflow tool based on the system modeling are introduced in the MATLAB, and the Stateflow is a tool for graphical design and development of the integrated Simulink, and the modeling of the logic system is carried out by using the Stateflow, so that the development cycle of the product can be greatly shortened, And the maintenance is more convenient. This paper first introduces the process of Simulink based on the model design, what is the finite state machine, then introduces the modeling of the logic system and the development tool, and the design of the GUI user interface graph and its development ring. where the air freshener is designed based on Stateful The example of the air freshener is based on the demand of the customer, and the STM8S105S68 bit ultra-low power chip of ST company is used as the main control chip, and the hardware system platform is set up. The main control board. The air sterilizer is in fact operated by the remote controller to the disinfection mode and time, which is equivalent to the event response system or the dynamic transformation system, and the software platform sets up the main control for creating the air sterilizer by using the state flow Statulow the state diagram, the key state diagram and the relay state diagram are used for switching the state of the control system; the control part of the remote controller is used for modeling and simulating the event driven system controlled by the remote controller through the Simulink model and the GUI design remote controller interface so as to realize the complex logic system of the air sterilizer The modeling of the air freshener system makes the design of the air freshener system more intuitive and simple, is easy to maintain, and uses the Real-Time Workshop tool to generate the mesh. Standard code. Finally, a summary of the work is carried out
【學位授予單位】:吉林大學
【學位級別】:碩士
【學位授予年份】:2013
【分類號】:TP368.1
【參考文獻】
相關(guān)期刊論文 前4條
1 沈凌慶;;產(chǎn)房兩種空氣消毒方法效果對比[J];菏澤醫(yī)學專科學校學報;2009年04期
2 張文斗;陳t
本文編號:2512073
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2512073.html
最近更新
教材專著