- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
目 录
摘 要 3
ABSTRACT 4
前 言 5
第一章 绪 论 6
·1.1 研究背景 6
·1.2 设计内容 6
·1.3 技术路线 7
第二章 技术背景介绍 9
·2.1 C#.NET技术 9
2.1.1 .NET平台概述 9
2.1.2 C#语言介绍 12
·2.2 ADO.NET技术 13
2.2.1 ADO.NET概念 13
2.2.2 数据库的连接 14
2.2.3 数据库操作 15
2.2.4 访问数据库 16
2.2.5 其他组件介绍 17
·2.3 XML技术 18
2.3.1 XML简介 18
2.3.2 XML的特点 18
2.3.3 应用XML 18
2.3.4 访问XML技术 19
·2.4 技术路线比较 20
第三章 系统软件设计 23
·3.1 需求分析 23
·3.2 系统结构设计 23
·3.3 程序结构设计 24
3.3.1 主界面设计 25
3.3.2 参数设置界面 26
3.3.3 数据输入界面 27
3.3.4 数据查询界面 28
3.3.5 帮助界面 29
·3.4. 数据库设计 30
·3.5 XML设计 32
·3.6 串口通信协议 32
第四章 软件系统实现 34
·4.1 数据部分实现 34
·4.2 数据库实现 38
·4.3 XML技术实现 42
第五章 系统测试及误差分析 46
·5.1系统调试 46
·5.2误差分析 47
·5.3 .NET的开发调试方法 47
5.3.1断点调试 47
5.3.2 跟踪和调试 47
结 论 49
总结与体会 50
谢 辞 51
参考文献 52
附录一:翻译英文部分 53
附录二:翻译中文部分 64
摘 要
随着计算机技术的飞速发展和普及,数据采集系统也迅速地得到应用。温湿度数据采集系统的主要功能是把模拟信号变成数字信号,并进行分析、处理、存储和显示。本设计要求在Windows环境下实现PC机与单片机之间的串口通信,以PC机作为上位机,单片机作为下位机。考虑到C#编程语言具有面向对象的设计方法,友好的用户界面等优点,通过串口RS232进行串口通信把温度、湿度、露点数据传送给PC机,显示在用C#语言开发的一个可以显示温湿度数据的界面上,再进行相关的数据处理。本设计在此基础上还设计了系统的总体方案,最后通过硬件和软件实现了各个功能模块。相关部分附有程序流程图,程序代码。
经实验证明本系统的稳定性良好,测量误差在允许的范围之内,能够满足实验对数据采集和记录的要求和相应的精度要求。
关键词:单片机;串行通信;数据交换;
ABSTRACT
With the rapidly development of computer technology and penetration, the data acquisition system are also rapidly applied. Temperature and humidity data acquisition system’s main function is translate analog signals into digital signals,and then to analysis, processing,storage and display.The design’s requirements beyond the Windows environment is to achieve communication between PC and the serialport. Consider PC as a microcontroller, SCM as the next machine.
Taking into account the C # programming language has object-oriented
design and friendly user interface, and other advantages .Through a serial RS232 implement serial communication and transmit the temperature, humidity, dew
point to the PC and show the temperature and humidity data on the interface which is develop with the C # language, and then begain the data processing . The des
文档评论(0)