文档详情

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

发布:2018-08-17约1.81万字共29页下载文档
文本预览下载声明
基于单片机的一氧化碳检测仪的设计 2011 届毕业设计(论文) 题 目: 基于单片机的一氧化碳检测仪的设计 (上位机软件部分) 学 院: 浦江学院 专 业: 通信工程 班 级: 浦通信0703 姓 名: 张萌 指导教师: 陈志贤 起讫时间: 2011-3-1~2011-6-14 二?一一 年 六 月 基于单片机的一氧化碳检测仪的设计(上位机软件部分) 摘 要 一氧化碳检测仪是一款用于检测室内以及工作场所中一氧化碳浓度并且具有超限报警功能的仪器,对人们的生活和工作安全有很好的保障作用。因此,一氧化碳检测仪具有较高的研究价值和使用价值。 本文主要介绍了上位机软件的设计内容:串口通信、数据打点显示以及数据的存储功能。通过RS232串口接收单片机发送过来的一氧化碳浓度数据,在PC机上以直观图形的方式显示数据并且将其存储起来以方便随时可以调用查看。 本次设计成功的完成了上位机软件部分的制作,能够准确的接收单片机传输的数据并且很好的显示以及储存查看。 关键词:一氧化碳检测仪 数据处理 串口通信 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
显示全部
相似文档