1、 - I - 摘 要 目前的温度测量控制系统一般使用的都是传统仪器,传统仪器的功能 都是通过硬件或者固化的软件来实现的,且每台仪器的功能及使用范围都 是不可改变的,测试信息都是彼此孤立不开放的,不适合实验室的建设使 用。而虚拟仪器是通过一定的应用程序将计算机与硬件模块结合在一起的 一种全新的测控仪器系统,既具备传统仪器的基本功能,又能让用户根据 自己的需求变化随时定义,实现多种多样的应用需求。 本设计主要利用 LabVIEW 软件,设计了温度监测系统虚拟仪表。下 位机信号采集部分利用热电偶来测量温度,经三运放差动放大器放大成为 标准输入信号,送 AD 转换器转换,单片机将转换后的数据通过串口发
2、送 给上位机,上位机读取串口数据,完成字符串到数字量的转换并显示。同 时,系统实现了报警,数据保存等功能。 论文主要介绍了该系统的总体设计方案及软件、硬件设计方案,其中 包括串行通讯、数据处理、数据保存、温度的越限报警等功能,并且介绍 了各部分的具体实现方法。 关键词: 虚拟仪器;LabVIEW;串口通信 - II - Abstract The current control system of temperature measurement are generally used in traditional instruments, traditional instruments of th
3、e functions are to achieve by hardware or cured software, and function and use of each instrument is not unmodifiable. Their measured information is isolated and not opened, which isnt suitable for use of laboratory construction.The virtual instrument is a completely new measurement and controled in
4、strumentation system which can contact computer and hardware modules together by certain application.It is not only with the basic functions of traditional instruments, but also allows users to define their needs change at any time to achieve diverse applications. In the paper, I design a temperatur
5、e control virtual instruments with LabVIEW software. The paper mainly introduces the overall design of the system and software and hardware design scheme. It includes serial communications, data processing, data saving, the more limited temperature alarm and other functions. And it introduces the va
6、rious parts of the concrete implementation. Keywords: Virtual instrument; LabVIEW;Serial Communication - III - 目 录 1 绪论 1 1.1 课题的研究目的及意义 . 1 1.2 课题的国内外研究现状 . 2 1.3 课题研究的主要内容 . 3 2 LabVIEW 与虚拟仪器简介 5 2.1 LabVIEW 的简介 . 5 2.1.1 LabVIEW 的概念 . 5 2.1.2 LabVIEW 的组成及功能 . 7 2.1.3 LabVIEW 的应用现状 . 10 2.2 虚拟仪器系统概述 . 11 2.2.1 虚拟仪器的概念. 11 2.2.2 虚拟仪器的主要特点. 12 2.3 本章小结 . 14 3 温度监测系统虚拟仪表的总体设计 15 3.1 虚拟仪表实现的功能 . 15 3.2 虚拟仪表设计的原则 . 15 3.3 虚拟仪表的总体设计方案 . 16 3.4 本章小结 . 17 4 下位机信号采集的硬件设计 18 4.1 下位机的硬件组成 . 18 4.2 单片