基于LabVIEW和单片机的电压监测设计(毕设)
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
基于LabVIEW与单片机的电压监测系统设计
专业班级: 11电子(1)班学生姓名:任辉
指导老师:朱慧博职称:副教授
摘要在电子产业日益发达的当今社会,及时准确的监测出当前的电压值并且予以反馈在确保人身安全与系统正常运行反面显得尤为重要。在这种背景下,基于LabVIEW和单片机的电压监测的设计受到了极大关注。在此次设计的系统中,主要分为两个部分即上位机与下位机。上位机主要是通过前面板来显示测量结果,LabVIEW作为开发平台,利用VISA 调用串口程序读取数据,对采集到的电压数据进行实时处理、显示、存储与报警。当采集电压超过设定值时,前面板会出现蜂鸣器警戒响声,反之则会正常显示。当然这一切的实现都是建立在后面板设计和下位机硬件设计的基础上完成的。下位机部分主要是相关元器件的连接,选用STC89C51作为核心器件,同时利用ADC0809来完成对电压的采集工作,将采集到的结果送至单片机,然后通过串口通信送至计算机的LabVIEW系统中进行显示。为了增加传输距离和实现电路复位功能,在硬件电路设计部分增加了MAX232。由于虚拟仪器的使用,使得设计成本大大降低,再加之虚拟仪器与单片机所具有的诸多优点,相信在不久的将来,电压监测与虚拟仪器这两个方面必将得到更多的应用与更好的完善。
关键词LabVIEW 单片机电压监测串口通信
Based on the LabVIEW and Voltage Monitoring System Design of Single Chip
Microcomputer
Abstract In the electronics industry is increasingly developed in today's society, timely and accurate monitoring of the current voltage value and give feedback to ensure personal safety and normal operation of the reverse side is particularly important. In this context, based on the LabVIEW and MCU voltage monitoring design received a lot of attention. In the design of the system, the main is divided into two parts the upper machine and lower machine. Upper machine mainly through the front panel to display the measurement results, the LabVIEW as the development platform, USES VISA call a serial port to read data, real-time voltage of collected data processing, display, storage, and report to the police. When collecting voltage more than the set value, the front panel will appear the buzzer alarm sound, the opposite will display properly. , of course, the implementation of all this is built in the panel on the basis of the design and the hardware design of singlechip processor system. Under a machine part was mainly related to components of the connection, STC89C51 chosen as the core device, at the same time using ADC0809 to complete the acquisition work of voltage, the collected results sent to the single-chip microcomputer, and then sent to the computer through a serial port communication of the LabVIEW for display in the system. In order to increase the transmission distance and reset function, implement circuit in the hardware circuit design part increased MAX232. Due to the use of virtual instrument, greatly reduce the design cost, coupled with virtual instrument with single chip microcomputer has many advantages, believe in the near future, the voltage monitoring and virtual instrument is the application of these two aspects will get more and better.
Key words LabVIEW SCM Voltage Monitoring Serial Communication
目录
第一章引言 (1)
1.1课题研究的背景 (1)
1.2国内外电压监测系统的研究状况 (1)
1.2.1国内电压监测系统的研究状况 (1)
1.2.2国外电压监测系统的研究状况 (2)
1.3 LabVIEW的应用现状 (2)
1.4课题研究的意义 (2)
第二章虚拟仪器概述 (3)
2.1虚拟仪器简介 (3)
2.1.1虚拟仪器的概念 (3)
2.1.2虚拟仪器的结构 (4)
2.1.3虚拟仪器的特点 (4)
2.1.4虚拟仪器的优势 (4)
2.1.5前面板设计 (5)
2.2构建程序框图 (6)
2.2.1程序框图中的对象 (6)
2.2.2基本数据类型 (6)
2.2.3程序的层次结构 (6)
2.3程序框图设计原则 (6)
第三章单片机简介 (8)
3.1单片机的基本概念 (8)
3.2单片机的发展历史 (8)
3.3单片机的主要特点 (9)
3.4单片机的应用 (9)
3.5单片机的发展趋势 (10)
3.6常用单片机芯片 (11)
第四章系统的下位机设计 (12)
4.1单片机控件电路的设计 (12)
4.1.1单片机控件功能简介 (12)
4.1.2单片机最小系统 (12)
4.2 ADC0809电压采集 (13)
4.3单片机电压采集 (14)
4.4数据的转换方式 (15)
4.5串口通信转换 (15)
4.6蜂鸣器报警设计 (16)
4.7 LED灯显示设计 (17)
4.8 LCD显示设计 (17)
4.9硬件总设计 (18)
第五章系统的上位机设计 (20)
5.1 LabVIEW的软件开发环境 (20)
5.2 LabVIEW上位机后面板设计 (20)
5.2.1串口程序编译 (20)
5.2.2 VISA的读取 (21)