LabView与单片机通信设计.pdf

上传人:飞****9 文档编号:137928500 上传时间:2020-07-12 格式:PDF 页数:39 大小:1.21MB
返回 下载 相关 举报
LabView与单片机通信设计.pdf_第1页
第1页 / 共39页
LabView与单片机通信设计.pdf_第2页
第2页 / 共39页
LabView与单片机通信设计.pdf_第3页
第3页 / 共39页
LabView与单片机通信设计.pdf_第4页
第4页 / 共39页
LabView与单片机通信设计.pdf_第5页
第5页 / 共39页
点击查看更多>>
资源描述

《LabView与单片机通信设计.pdf》由会员分享,可在线阅读,更多相关《LabView与单片机通信设计.pdf(39页珍藏版)》请在金锄头文库上搜索。

1、河南科技大学毕业设计(论文) LabView 与单片机通信设计 摘 要 虚拟仪器是现代计算机技术同仪器技术深层次结合的全新概念仪器,实 质是利用计算机显示器的显示功能模拟传统仪器的控制面板,以多种形式表 达输出测量结果,利用计算机强大的软件功能实现信号数据的运算、分析和 处理,完成各种测试功能的一种计算机仪器系统。 本文介绍了利用 LabView 语言来实现上、下位机之间通信的方法,并从 软、 硬件两个方面阐述了设计思想。 在简要介绍图形化虚拟仪器平台 LabView 的基础上,分析 STC12C5A60S2 单片机与 LabView 之间的串口通信模式,并结 合该设计中设计的温度检测系统给出

2、串口通信的软、硬件设计。 应用先进的虚拟仪器软件 LabView,大大降低了串口通讯复杂程度,减 小了软件设计的工作量,能够大大降低投资成本。在实际应用中有巨大的使 用价值。 关键词:单片机,LabView,串口通信 Design of MCU Serial Communication Based on LabView ABSTRACT Virtual instrument is the modern computer technology combined with the instrumentation of the new concept of deep-level instrument

3、, in real terms is the use of analog computer monitors display control panel, traditional instruments, in various forms to express the output measurements, using computer software features to achieve a strong signal Operation data, analysis and processing, to complete a variety of testing capabiliti

4、es of a computer instrument system. This article describes the use of LabView to implement the language, the next method of communication between the crew and from the software and hardware are two aspects of the design. Based on simple introduction of LabView dummy instruments platform,analyses the

5、 mode of serial communication between STC12C5A60S2 MCU and LabView,and gives its software and hardware design with an example of a system of Temp-Watch The application of advanced virtual instrument software LabView, greatly reduces the complexity of serial communication, reduce the software design

6、can greatly reduce the investment cost. In practice, there is tremendous value in use. KEY WORDS:MCU, LabView, Serial Communication 目 录 前 言 . 1 第第 1 章章 绪论 . 3 1.1 研究的背景及意义 . 3 1.1.1 课题研究背景 . 3 1.1.2 课题研究意义 . 3 1.2 课题发展状况 . 4 1.3 设计任务 . 5 第第 2 章章 系统系统总体设计 . 6 2.1 系统方案设计 . 6 2.2 系统硬件选择 . 6 第 3 章 系统硬件设

7、计 . 7 3.1 元器件的介绍 . 7 3.1.1 主控制器(STC12C5A60S2) . 7 3.1.2 温度传感器介绍(DS18B20) . 10 3.1.3PL2303HX 简介 . 13 3.2 硬件电路图设计 . 13 3.2.1 主板电路 . 13 3.2.2 温度检测电路 . 14 3.2.3 键盘电路 . 15 3.2.4LED 灯控制电路 . 15 3.2.5 串口通信电路 . 16 第 4 章 系统软件设计 . 17 4.1 单片机接口程序设计 . 17 4.2 LabView 串口设置及 HMI 设计 . 18 4.2.1 VISA 简介 . 18 4.2.2 串口通

8、讯函数 . 18 4.2.3 HMI 设计 . 19 4.3 上位机 PC 机 LabView 串口通信实现 . 19 4.4 单片机串口通讯协议 . 22 结 论 . 23 参考文献 . 24 致 谢 . 25 附 录 . 26 1 前前 言言 此次毕业设计的主要研究内容以单片机为核心, 设计温度检测电路, LED 灯控制电路,开关输入检测电路,串行通信接口电路,并编写相关控制程序。 设计基于串行通信的协议,实现和 LabView 的通信功能。 LabView 是一种用图标代替文本行创建应用程序的图形化编程语言。与 Visual C、 Visual Basic 等计算机编程语言相比, 图形化编程工具 LabView 有一个重要的不同点:不采用基于文本的语言产生代码行,而使用图形化编 程语言 G 编写程序;产生的程序是框图的形式,用框图代替了传统的程序代 码。 因而可在很短的时间内被掌握并应用到实践中去,特别适合硬件工程师、 实验室技术人员、生产线工艺技术人员的学习和使用。但其功能并没有因图 形化编程而受到限制,依然具有通用编程系统的特点。LabView 有一个可完 成任何编程任务的庞大的函数

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 管理论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号