基于Qt插件技術(shù)的肺癌氣體檢測嵌入式控制軟件系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)
發(fā)布時(shí)間:2018-05-12 03:22
本文選題:肺癌檢測 + Qt插件技術(shù); 參考:《重慶大學(xué)》2016年碩士論文
【摘要】:隨著肺癌發(fā)病率和死亡率的提高,人們?cè)絹碓街匾暦伟┑臋z測。對(duì)肺癌的研究發(fā)現(xiàn),肺癌患者呼出的氣體中含有可用于檢測肺癌的物質(zhì)——肺癌標(biāo)志物。本課題組提出了一種利用卟啉傳感器陣列檢測肺癌的新型檢測方法。隨著研究的不斷深入,需要經(jīng)常調(diào)整肺癌檢測儀器的軟件功能。如果使用常規(guī)的軟件開發(fā)方式,存在開發(fā)周期長,不易擴(kuò)展等不足。本文旨在基于Qt插件技術(shù)設(shè)計(jì)和實(shí)現(xiàn)一套具有高擴(kuò)展性和復(fù)用性的用于肺癌氣體檢測的嵌入式控制軟件系統(tǒng)。為了完成這個(gè)目標(biāo),本文的研究工作從以下幾個(gè)方面展開:(1)做出軟件的需求分析,并基于Qt插件技術(shù)完成系統(tǒng)的設(shè)計(jì)。通過系統(tǒng)設(shè)計(jì),將本軟件總體上分兩部分。一部分運(yùn)行在PIC16F877A型單片機(jī)構(gòu)成的下位機(jī),一部分運(yùn)行在Tiny6410嵌入式平臺(tái)構(gòu)成的上位機(jī)。在每個(gè)部分又將程序進(jìn)行了模塊劃分。將下位機(jī)分為簡單IO口模塊,微型氣泵模塊,溫濕度采集模塊,串口通信模塊和“看門狗”模塊。將上位機(jī)分為簡單類插件和復(fù)雜類插件。(2)下位機(jī)程序中,分別實(shí)現(xiàn)了簡單IO口模塊,微型氣泵模塊,溫濕度采集模塊,串口通信模塊和 看門狗‖模塊的功能。(3)在上位機(jī)程序中,分別實(shí)現(xiàn)了簡單類插件、復(fù)雜類插件、GUI界面、主體程序的功能。主體程序中使用任務(wù)池的類,實(shí)現(xiàn)了在配置文件中指定器件動(dòng)作的功能。并使用該方法,完成了富集循環(huán)任務(wù),檢測循環(huán)任務(wù)和攝像頭的采集等任務(wù)。在GUI界面的設(shè)計(jì)中遵循統(tǒng)一的風(fēng)格,設(shè)計(jì)出實(shí)用、美觀的登錄界面、執(zhí)行界面和結(jié)果顯示界面。(4)將宿主機(jī)中的軟件交叉編譯后移植到嵌入式設(shè)備中,并測試它的功能正確性、容錯(cuò)性、可擴(kuò)展性和可復(fù)用性。為了測試功能正確性,在室溫為25攝氏度,濕度為67%的環(huán)境下進(jìn)行大量的實(shí)驗(yàn),結(jié)果軟件均能正常的運(yùn)行。為檢測系統(tǒng)的容錯(cuò)性,分別做了登錄驗(yàn)證容錯(cuò)性測試、溫度超閾值容錯(cuò)性測試、串口通信容錯(cuò)性測試,結(jié)果軟件在各種錯(cuò)誤條件下均能提示出錯(cuò)。為檢測軟件的復(fù)用性和可擴(kuò)展性,以擴(kuò)展一個(gè)直通電磁閥為例,復(fù)用直通電磁閥插件完成了程序的擴(kuò)展。經(jīng)過以上的工作,本文基于Qt插件技術(shù)實(shí)現(xiàn)了肺癌氣體檢測控制軟件系統(tǒng)。該軟件系統(tǒng)實(shí)現(xiàn)了預(yù)期的功能,具有良好的擴(kuò)展性、可復(fù)用性和容錯(cuò)性。
[Abstract]:With the increasing incidence and mortality of lung cancer, more and more attention has been paid to the detection of lung cancer. Lung cancer studies have found that lung cancer markers are found in the gases exhaled by lung cancer patients. A new detection method for lung cancer using porphyrin sensor array was proposed. With the development of research, the software functions of lung cancer detection instruments need to be adjusted frequently. If the conventional software development mode, there are long development cycle, not easy to expand, and so on. The purpose of this paper is to design and implement an embedded control software system for lung cancer gas detection based on QT plug-in technology. In order to achieve this goal, the research work of this paper starts from the following several aspects: 1) makes the software requirement analysis, and completes the system design based on QT plug-in technology. Through the system design, the software is divided into two parts. One part runs in the lower computer composed of PIC16F877A single chip computer, and another part runs in the upper computer composed of Tiny6410 embedded platform. In each part, the program is divided into modules. The lower computer is divided into simple IO port module, micro air pump module, temperature and humidity acquisition module, serial communication module and "watchdog" module. The upper computer is divided into simple class plug-in and complex class plug-in. 2) in the lower computer program, the simple IO port module, the micro air pump module, the temperature and humidity collection module are implemented, respectively. The function of serial communication module and watchdog module. In the upper computer program, the functions of simple class plug-in, complex class plug-in and GUI interface and main program are realized respectively. The main program uses the class of task pool to realize the function of specifying device action in configuration file. By using this method, the tasks of enrichment cycle, detection of cycle and acquisition of camera are accomplished. Following the unified style in the design of GUI interface, designing a practical and beautiful login interface, executing interface and result display interface. 4) transplanting the software in host computer to embedded device after cross-compiling, and testing its function correctness. Fault tolerance, extensibility and reusability. In order to test the correctness of the function, a large number of experiments were carried out at room temperature of 25 鈩,
本文編號(hào):1876904
本文鏈接:http://sikaile.net/yixuelunwen/zlx/1876904.html
最近更新
教材專著