【正文】
南京工程學(xué)院自動(dòng)化學(xué)院本科畢業(yè)設(shè)計(jì)(論文 ) 1 南京工程學(xué)院 自動(dòng)化學(xué)院 本科畢業(yè)設(shè)計(jì)(論文) 題目: 拉力試驗(yàn)機(jī)無(wú)線網(wǎng)絡(luò)的 PC軟件設(shè)計(jì) 專 業(yè): 自動(dòng)化 班 級(jí): 數(shù)控 000 學(xué) 號(hào): 000000 學(xué)生姓名: 0000000 指導(dǎo)教師: 000000000000000 起迄日期: ~ 設(shè)計(jì)地點(diǎn): 工 程 實(shí) 踐 中 心 7 號(hào)樓 南京工程學(xué)院自動(dòng)化學(xué)院本科畢業(yè)設(shè)計(jì)(論文 ) 2 Graduation Design (Thesis) PC Software Design for Tensile Testing Based on Wireless Network By 00000000 Supervised by Associate School of Automation Nanjing Institute of Technology June, 20xx 南京工程學(xué)院自動(dòng)化學(xué)院本科畢業(yè)設(shè)計(jì)(論文 ) 3 摘 要 設(shè)計(jì) 拉力試驗(yàn)機(jī) PC端軟件 的主要目的是配合 拉力試驗(yàn)機(jī)下位機(jī) 工作, 運(yùn)用無(wú)線網(wǎng)絡(luò)技術(shù)實(shí)現(xiàn)對(duì)多 臺(tái)拉力試驗(yàn)機(jī)的監(jiān)控,對(duì)接收到的數(shù)據(jù)進(jìn)行 簡(jiǎn)單處理,繪制出拉力曲線圖,并完成對(duì)數(shù)據(jù)的存儲(chǔ) 。 本文的主要內(nèi)容 是 介紹了一種基于 C++語(yǔ)言開發(fā)的 監(jiān)控 軟件。對(duì) 拉力試驗(yàn)機(jī) 的工作原理 及整個(gè)系統(tǒng)的網(wǎng)絡(luò)結(jié)構(gòu) 進(jìn)行了簡(jiǎn)要的闡述。 分析了 軟件的 的用戶需求、設(shè)計(jì)方法、設(shè)計(jì)思路、設(shè)計(jì)流程等。重點(diǎn)介紹了模塊化程序設(shè)計(jì)的方法并著重講述了 各功能模塊的功能 實(shí)現(xiàn)。按照要求,本次的軟件可分為以下幾大功能模塊,分別是串口通信模塊、顯示模塊、繪圖模塊、存儲(chǔ)模塊及其他附加功能模塊,其中, 重 點(diǎn) 講述了 串口通信模塊的功能實(shí)現(xiàn) 。 在運(yùn)行調(diào)試過(guò)程中,遇到的 一些問(wèn)題通過(guò) 老師指導(dǎo)、 查閱資料等方法得到了很好的解決。程序運(yùn)行的結(jié)果 基本 達(dá)到了預(yù)期的 效 果, 串口 通訊可靠性滿足要求 ,拉力曲線圖繪制比較精確,數(shù)據(jù)的存儲(chǔ)功能也基本實(shí)現(xiàn) 。但是, 仍 有不足之處 。 例如:界面美化方面 有待 進(jìn)一步加強(qiáng), 軟件不夠靈活,未能實(shí)現(xiàn)拉力曲線圖的存儲(chǔ) 。 關(guān)鍵詞 : 拉力試驗(yàn)機(jī) ;監(jiān)控軟件; C++; 串口通信 南京工程學(xué)院自動(dòng)化學(xué)院本科畢業(yè)設(shè)計(jì)(論文 ) 4 ABSTRACT The main purpose of the design of tensile testing machine PC software is work with tensile testing machine, puter, monitor multiple tensile testing machine with wireless work technology, a simple treatment of the received data, draw force curve, and plete the data storage. The main content of this paper is to introduce a monitoring software based on C++ language. The work structure of the working principle of tensile test machine and the whole system are briefly discussed. Analysis of consumer demand, the software design method, design ideas, design process. Introduced the method of modular design and describes the functions of each function module realization. According to the requirement, the software can be divided into several functional modules, respectively is the serial munication module, display module, the drawing module, storage module and other additional function module, wherein, focuses on the serial munication module. In the debugging process, some of the problems encountered were obtained through the guidance of a teacher, access to information and other methods to solve good. The result of running the program basically achieve the expected results, to meet the requirements of serial munication reliability, tensile curve drawing is more accurate, but also realize the function of data storage. However, there are still shortings. For example: the interface landscaping should be further strengthened, the software is not flexible enough, failed to achieve the tensile curve graph storage. Key words: Tensile testing machine。 monitoring software。 C++。 serial munication 南京工程學(xué)院自動(dòng)化學(xué)院本科畢業(yè)設(shè)計(jì)(論文 ) 5 目錄 第一章 緒論 ........................................7 引言 ....................................................... 7 設(shè)計(jì)的目的及意義 ........................................... 8 本次選題的意義 .................................................................................... 9 軟件設(shè)計(jì)的目的 .................................................................................... 9 國(guó)內(nèi)外的研究現(xiàn)狀 ........................................................................................ 9 國(guó)外的發(fā)展現(xiàn)狀 .................................................................................. 10 國(guó)內(nèi)的發(fā)展現(xiàn)狀 .................................................................................. 11 本文的結(jié)構(gòu) .................................................................................................. 11 第二章 上位軟件的總體分析 ...........................13 網(wǎng)絡(luò)結(jié)構(gòu) ................................................... 13 Zigbee 簡(jiǎn)介 ........................................... 13 Zigbee 應(yīng)用 ........................................... 15 上位 PC 軟件設(shè)計(jì)分析 ........................................ 15 需求分析 .............................................. 15 模塊化程序設(shè)計(jì) ........................................ 16 功能模塊的劃分 ........................................ 17 設(shè)計(jì)的思路及實(shí)現(xiàn)的方法 ..................................... 18 總體設(shè)計(jì)概述 .......................................... 18 編程語(yǔ)言的選擇 ........................................ 18 編程的步驟 ............................................ 18 本章小結(jié) ................................................... 19 第三章 上位軟件的具體設(shè)計(jì) ..........................20 南京工程學(xué)院自動(dòng)化學(xué)院本科畢業(yè)設(shè)計(jì)(論文 ) 6 軟件總體流程圖 ............................................. 20 串口通信的實(shí)現(xiàn) .............................................. 21 MSComm 控件簡(jiǎn)介 ...................................... 21 利用串口控件實(shí)現(xiàn)串口通信 ............................. 24 人機(jī)交互界面的設(shè)計(jì) ......................................... 27 人機(jī)界面設(shè)計(jì)原則 ...................................... 27 主體界面的設(shè)計(jì) ........................................ 29 常用控件的使用情況 .................................... 30 拉力曲線的繪制 ............................................. 31 繪圖用到的類與函數(shù) .................................... 31 拉力曲線繪制的總流程圖 ................................ 33 數(shù)據(jù)的存 儲(chǔ) ................................................. 34 本章小結(jié) ................................................... 36 第四章 軟件功能的實(shí)現(xiàn) ..............................38 軟件調(diào)試方法 .............................................. 38 軟件具體調(diào)試 ............................................... 39 第五章 結(jié)論 .......................................43 論文總結(jié) .................................................. 43 展望 ....................................................... 43 感想 ....................................................... 44 南京工程學(xué)院自動(dòng)化學(xué)院本科畢業(yè)設(shè)計(jì)(論文 ) 7 第一章 緒論 引言 試驗(yàn)機(jī)是試驗(yàn)、檢測(cè)材料 (金屬材料、非金屬材料 )、零部件、構(gòu)件和結(jié)構(gòu)的強(qiáng)度、剛度、硬度、彈性、塑性、韌性、延性和表面與內(nèi)部缺陷的儀器設(shè)備、系統(tǒng)或裝置。大多數(shù)試驗(yàn)機(jī)是集機(jī)一光一電一液于一體的技術(shù)密集型高科技產(chǎn)品,多數(shù)產(chǎn)