没有合适的资源?快使用搜索试试~ 我知道了~
基于labview的PC与单片机的串口通信的循环计数设计方法毕业设计(论文).doc
0 下载量 125 浏览量
2023-07-09
15:04:56
上传
评论
收藏 1.83MB DOC 举报
温馨提示
试读
57页
基于labview的PC与单片机的串口通信的循环计数设计方法毕业设计(论文).doc
资源推荐
资源详情
资源评论
毕 业 设 计(论 文)
题 目:
南京大学金陵学院
毕 业 设 计(论 文)
作 者:
(三号楷体)
学 号:
(三号楷体)
系 部:
信息科学与工程学院
专 业:
(三号楷体)
题 目:
(三号楷体)
(内容过长可分两行)
指导老师
(姓名)
(职称)
提交日期
(三号楷体)
摘 要
虚拟仪器是一种利用计算机技术替代传统仪器的全新概念仪器,
本质就是利用电脑优越的硬件显示性能替代传统仪器达不到的显示
效果,用多种不同的方式显示和存储采集的信号,根据电脑先进的硬
件处理设备来处理和分析采集回来的数据,从而实现不同调试功能
的 PC 虚拟仪器系统。
本毕设依据 LabView 虚拟仪器实现上位机与下位机之间的高速
通讯,并根据 LABVIEW 中的 VISA 功能,将其应用于单片机串口通信中,
通过 Labview 发送循环计数的初值,单片机接收并显示在数码管上,
从接收到的初值开始计数,同时单片机返回循环计数结果,最后在
Labview 面板内容上动态显示循环计数值。
虚拟仪器软件 LabVIEW 的问世,大大提高了开发效率,减编写程
序的难度,缩短了研发周期,从而减少研发成本,为我们实际项目研
发提高了效率,带来了巨大财富。
关键词:LabVIEW; STC51 单片机; 串口通讯;数码管显示;
PC and the microcontroller serial communication and
indicating lamp control based on LabVIEW
ABSTRACT
Virtual instrument is a kind of using computer technology to replace traditional
instrument instrument of new concept, essence is the use of alternatives to traditional
function of superior computer display instrument reach display effect, output
measurement results in many different ways, and use the computer a powerful
software function implementation evaluation of signal data, analysis and processing,
complete all kinds of test functions of a computer instrument system.
By using LabView virtual instrument was introduced in this paper the tell
communication between upper machine and lower machine, using the LabView
function, applied to the single chip microcomputer serial port communication, sent by
LabView initial value of the cycle count, microcontroller to receive and display on the
digital tube, starting from the received initial count, microcontroller return cycle count
results at the same time, the content of the LabView panel on dynamic display cycle
count.
Virtual instrument software LabVIEW, greatly improves the development
efficiency, reduce the difficulty of the program, shorten the development cycle,
reducing development costs, for our practical project research and development
efficiency, brought huge wealth.
Keywords:Labview; STC51 microcontroller; A serial port communication;
Digital tube display
目录
第一章 绪论
1.1 课题的背景和意义...............................................................................................6
1.2 课题实现内容.....................................................................................................7
第二章 软硬件介绍
2.1 虚拟仪器与 LabVIEW
2.2 虚拟仪器的概述..............................................................................................8
2.2.1 虚拟仪器方案的组成..............................................................................9
2.2.2 虚拟仪器方案的优势..............................................................................9
2.2.3 虚拟仪器和传统仪器的区别................................................................10
2.2.4 虚拟仪器的发展与现状.......................................................................11
2.2.4 虚拟仪器的应用...................................................................................11
2.3 LabVIEW 简介 ..............................................................................................12
2.4 LabVIEW 基本特点 ........................................................................................13
2.5 STC89C51RC 单片机介绍.............................................................................13
2.6 单片机编程环境 KEIL 和下载软件 STC-ISP 介绍........................................16
第三章总体设计方案
3.1 系统总体方案设计...............................................................................................18
3.2 系统硬件的选择...................................................................................................18
3.2.1 核心控制器选择......................................................................................18
3.2.2 上位机编程软件的选择..........................................................................19
3.2.3 显示系统选择..........................................................................................19
第四章 LabVIEW 上位机介绍
4.1 上位机程序内容...............................................................................................20
4.2 上位机框图.....................................................................................................20
4.2.1 上位机前面板框图..............................................................................20
4.2.2 上位机创建虚拟仪器过程..................................................................21
4.2.3 上位机程序流程图..............................................................................21
4.3 上位机 Labview 串口通讯的实现..................................................................22
第五章单片机下位机设计
5.1 下位机流程图....................................................................................................28
5.2 设计目的和实现方案........................................................................................29
5.2.1 设计目的................................................................................................29
5.2.2 实现方案................................................................................................29
5.3 系统硬件结构..................................................................................................29
5.3.1 系统硬件电路........................................................................................29
5.3.2 主控系统................................................................................................30
5.3.3 复位电路..................................................................................................30
5.3.4 串口电路..................................................................................................31
5.3.5 震荡电路..................................................................................................31
5.3.6 LEd 电路 ..................................................................................................32
5.3.7 数码管显示电路......................................................................................33
5.5 串行通信.............................................................................................................34
5.4.1 串行通信的概念和特点...........................................................................35
5.4.2 串行通信的分类.......................................................................................35
5.4.3 串行通信的工作模式...............................................................................36
5.4.4 单片机内部串口配置...............................................................................38
第六章系统整体调试
联机调试............................................................................................................................40
致谢......................................................................................................................................42
参考文献..............................................................................................................................42
附录......................................................................................................................................43
附录 1 原理图........................................................................................................44
附录 2 单片机才程序............................................................................................45
剩余56页未读,继续阅读
资源评论
xinkai1688
- 粉丝: 331
- 资源: 8万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功