资源描述:
《温湿度测量系统设计(上位机软件设计)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、45陕西科技大学毕业论文(设计说明书)温湿度测量系统设计(上位机软件设计)摘要本课题实现方法是上位机通过RS_485总线及规定的通信协议发出的命令发送给下位机,下位机再根据此命令解释成相应时序信号直接控制传感器。下位机不时读取设备状态数据,转换成数字信号反馈给上位机。上位机对接收到的数据经过处理,在上位机上显示和存储与数据库中等。同时上位机对用户进行管理,方便用户对采集到的数据进行查看及对历史数据的查询等。介绍了温湿度测量系统上位机的软件构成。用VisualC++作为开发平台,采用MFC类库,利用VC6.0基于对话
2、框的模板,MicrosoftAccess作为后台开发数据库,并利用MSComm控件完成串口通信设计了一个实时监测上位机软件系统。本文从上位机软件出发,利用面向对象、数据库、串口通信等技术完成系统信息和数据存储、数据和曲线实时显示、历时查询、等功能,实现了上位机系统的监测任务。给出了软件的总体设计方案和各功能模块的设计,说明了该软件的主要功能,并给出了系统的运行界面和应用模式。关键词:温湿度,数据采集,串口通信,MFC,上位机,MSComm45陕西科技大学毕业论文(设计说明书)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陕西科技大学毕业论文(设计说明书)目录摘要IABSTRACTII1绪论11.1课题意义及目的11.2课题主要研究的内容12面向过程与面向对象22.1面向过程与面向对象技术22.2面向对象的程序设计42.3本章小结53系统相关技术介绍63.1VisualC++开发平台63.1.1Windows编程模型63.1.2VC++应用程序创建过