資源描述:
《溫濕度測(cè)量系統(tǒng)設(shè)計(jì)(上位機(jī)軟件設(shè)計(jì))》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、45陜西科技大學(xué)畢業(yè)論文(設(shè)計(jì)說(shuō)明書)溫濕度測(cè)量系統(tǒng)設(shè)計(jì)(上位機(jī)軟件設(shè)計(jì))摘要本課題實(shí)現(xiàn)方法是上位機(jī)通過(guò)RS_485總線及規(guī)定的通信協(xié)議發(fā)出的命令發(fā)送給下位機(jī),下位機(jī)再根據(jù)此命令解釋成相應(yīng)時(shí)序信號(hào)直接控制傳感器。下位機(jī)不時(shí)讀取設(shè)備狀態(tài)數(shù)據(jù),轉(zhuǎn)換成數(shù)字信號(hào)反饋給上位機(jī)。上位機(jī)對(duì)接收到的數(shù)據(jù)經(jīng)過(guò)處理,在上位機(jī)上顯示和存儲(chǔ)與數(shù)據(jù)庫(kù)中等。同時(shí)上位機(jī)對(duì)用戶進(jìn)行管理,方便用戶對(duì)采集到的數(shù)據(jù)進(jìn)行查看及對(duì)歷史數(shù)據(jù)的查詢等。介紹了溫濕度測(cè)量系統(tǒng)上位機(jī)的軟件構(gòu)成。用VisualC++作為開發(fā)平臺(tái),采用MFC類庫(kù),利用VC6.0基于對(duì)話
2、框的模板,MicrosoftAccess作為后臺(tái)開發(fā)數(shù)據(jù)庫(kù),并利用MSComm控件完成串口通信設(shè)計(jì)了一個(gè)實(shí)時(shí)監(jiān)測(cè)上位機(jī)軟件系統(tǒng)。本文從上位機(jī)軟件出發(fā),利用面向?qū)ο蟆?shù)據(jù)庫(kù)、串口通信等技術(shù)完成系統(tǒng)信息和數(shù)據(jù)存儲(chǔ)、數(shù)據(jù)和曲線實(shí)時(shí)顯示、歷時(shí)查詢、等功能,實(shí)現(xiàn)了上位機(jī)系統(tǒng)的監(jiān)測(cè)任務(wù)。給出了軟件的總體設(shè)計(jì)方案和各功能模塊的設(shè)計(jì),說(shuō)明了該軟件的主要功能,并給出了系統(tǒng)的運(yùn)行界面和應(yīng)用模式。關(guān)鍵詞:溫濕度,數(shù)據(jù)采集,串口通信,MFC,上位機(jī),MSComm45陜西科技大學(xué)畢業(yè)論文(設(shè)計(jì)說(shuō)明書)Temperatureandhumidi
3、tymeasurementsystemdesign(PCsoftwaredesign)ABSTRACTApproachisPCthroughRS_485busandprovisionsofthecommunicationprotocolunderorderstosendoutamachine,lowerlevelcomputeraccordingtothiscommandtoexplainagainintocorrespondingtimingsignaldirectlycontrolsensor.Fromlowe
4、rlevelcomputerequipmentstatedata,convertedintodigitalsignalfeedbacktothePC.PCdockingreceivedataprocessed,inuppermachinedisplayandstorageanddatabasemedium.MeanwhilePCusermanagement,theconvenientuserforthecollecteddatainviewofhistoricaldataandthequeryetc.Introdu
5、cedthetemperatureandhumiditymeasurementsystemofsoftwareconstitutesuppermachine.UseVisualC++asadevelopmentplatform,usingMFClibraries,usingVC6.0dialog-basedtemplates,MicrosoftAccessasabackground,andbyusingthedevelopmentofdatabaseMSCommcontroldesignforacompletese
6、rialcommunicationreal-timemonitoringPCsoftwaresystem.Thispaper,startingfromthePCsoftwarebyusingobject-oriented,database,serialcommunicationtechnologycompletesysteminformationanddatastorage,dataandcurvereal-timedisplay,lastedinquiry,andotherfunctions,realizedth
7、ePCsystemmonitoringtask.Giventhegeneraldesignofthesoftwaresolutionsandthefunctionmoduledesign,showsthesoftware'smainfunctionispresented,andtheoperationofthesysteminterfaceandapplicationmode.KEYWORDS:Temperatureandhumidity,Serialcommunication,Dataacquisition,MF
8、C,PC,MSComm45陜西科技大學(xué)畢業(yè)論文(設(shè)計(jì)說(shuō)明書)目錄摘要IABSTRACTII1緒論11.1課題意義及目的11.2課題主要研究的內(nèi)容12面向過(guò)程與面向?qū)ο?2.1面向過(guò)程與面向?qū)ο蠹夹g(shù)22.2面向?qū)ο蟮某绦蛟O(shè)計(jì)42.3本章小結(jié)53系統(tǒng)相關(guān)技術(shù)介紹63.1VisualC++開發(fā)平臺(tái)63.1.1Windows編程模型63.1.2VC++應(yīng)用程序創(chuàng)建過(guò)