基于单片机的一氧化碳检测仪的设计.doc

基于单片机的一氧化碳检测仪的设计.doc

2011 届毕业设计(论文) 题 目: 基于单片机的一氧化碳检测仪的设计 (上位机软件部分) 学 院: 浦江学院 专 业: 通信工程 班 级: 浦通信0703 姓 名: 张萌 指导教师: 陈志贤 起讫时间: 2011-3-1~2011-6-14 二〇一一 年 六 月 基于的的设计摘 要 关键词: 数据处理 串口通信 The Design of carbon monoxide detector based on microcontroller (PC software parts) Abstract Carbon monoxide detector is used to detect a paragraph of indoor and workplace carbon monoxide concentrations and has the off-gauge alarm function instrument, for peoples life and work safety is very good security role. So, Carbon monoxide detector has high research value and use value. This paper mainly introduces the PC software design content: Data processing、Data display through dot and Data storage function. Through RS232 serial receives the data of monoxide concentrations sent over microcontroller, On PC with intuitive graphic display data and store it up with convenient can always call to check. This design successful completion of the PC software part of the production, the data of SCM transmission can be accurate received and very good show and storage and examine. Key Words: Carbon monoxide detector; Data processing; Serial communication 目 录 摘 要 I Abstract II 第一章 绪论 1 1.1一氧化碳的危害 1 1.2一氧化碳检测仪的研究现状 1 1.2.1基于单片机的分类的一氧化碳检测仪 1 1.2.2基于传感器分类的一氧化碳检测仪 1 1.3 多机串行通信研究现状 2 1.4 论文章节介绍 3 第二章 上位机软件的设计 4 2.1 上位机软件整体设计框架 4 2.2 串口通信模块的设计 4 2.2.1 RS-232串口 4 2.2.2 VC6.0介绍 6 2.2.3串行通讯的方法 6 2.2.4 MSComm控件的介绍 7 2.2.5串口设计流程 8 2.2.6 整数和小数位的处理 11 2.3 数据直观图显示模块 12 2.3.1基本的画线函数 12 2.3.2 CO数据图形化显示 13 2.4 数据的存储以及查看模块 14 2.4.1类CFile 14 2.4.2 CFile操作详解 16 2.4.3 数据的保存方式 17 2.4.4 查看之前存储的数据 18 2.5 程序显示界面模块 19 2.5.1 对话框概述 19 2.5.2 类CDialog介绍 20 2.5.3 对话框控件 21 2.5.4 对话框控件程序设计 21 2.6 串口采集数据实时显示窗口 24 第三章 系统调试和运行 25 3.1 测试工具介绍 25 3.2 系统调试和运行 25 3.2.1 测试方法 25 3.2.2 系统联调 25 3.2.3 系统运行 25 第四章 总结和展望 26 4.1 本次毕业设计总结 26 4.2 下一步工作展望 26 参考文献 28 致谢 30 第一章 绪论 1.1 一氧化碳是石油化工行业以及日常生活中常见的危害因素,分布范围广,接触人员多,毒性危害高。尤其是随着煤气化工业的发展,人员遭受一氧化碳危害影响的可能性增大。一氧化碳是无色、无味的气体,易扩散,微溶于水。易燃、易爆,与空气混合有爆炸的危险 [1]。 一氧化碳使血液携氧能力下降,阻碍氧的释放和传递,导致低氧血症和组织缺氧。由于中枢神经

文档评论(0)

1亿VIP精品文档

相关文档