孙毅刚+何进+李岐



摘 要: 针对多点温度测量的需求,设计一款基于LabVIEW的多通道温度监测系统。当下位机串口关闭时,即是一个由AT89C51单片机、DS18B20温度传感器以及LM041L显示器组成的嵌入式多通道温度采集系统。当串口打开时,下位机便可将各通道温度数据上传至上位机LabVIEW温度监测系统,实现PC端的多通道温度在线监测。仿真实验表明,系统设计方案切实可行,能够方便有效地实现多点温度实时监测。
关键词: 多点温度测量; AT89C51; DS18B20; LabVIEW; 温度监测
中图分类号: TN31+.3?34; TP212.9 文献标识码: A 文章编号: 1004?373X(2017)08?0183?04
Design of multi?channel temperature monitoring system based on LabVIEW
SUN Yigang1, HE Jin2, LI Qi2
(1. College of Aeronautical Engineering, Civil Aviation University of China, Tianjin 300300, China;
2. College of Electronic Information and Automation, Civil Aviation University of China, Tianjin 300300, China)
Abstract: To satisfy the demand of the multi?point temperature measurement, a multi?channel temperature monitoring system based on LabVIEW was designed. When the serial port of lower computer is closed, the multi?channel temperature monitoring system is an embedded one composed of the SCM AT89C51, temperature sensor DS18B20 and displayer LM041L. When the serial port is opened, the lower computer uploads the temperature data of each channel to the LabVIEW?based temperature monitoring system of the upper computer to achieve online monitoring of the multi?channel temperature at the PC side. The simulation experiment results show that the system design scheme is feasible, and can expediently and effectively monitor the multipoint temperature in real time.
Keywords: multi?point temperature measurement; AT89C51; DS18B20; LabVIEW; temperature monitoring
温度在日常生活、工业生产和科学研究中都是一个极其普遍又非常重要的物理量,许多设备运行、工农生产和科学实验都必须保证在一定的温度条件下进行,因此需要对温度进行监测的場合十分广泛[1]。传统的测温仪器功能比较单一,大多只能测量某一点的温度值[2],可视性不好,不能长久保存温度数据以进行后续统计和分析。为满足现代工业多点温度监测的需求,设计了一种基于LabVIEW的多通道温度监测系统,能够实现在-55~99 ℃范围内6通道的温度实时监测,具有多点温度同步采集、显示、报警、绘图及数据保存等功能,可用于智能楼宇、温室大棚、汽车空调、仓库储存等场合[3]。
1 系统总体结构设计
本文设计的基于LabVIEW的多通道温度监测系统由下位机多通道温度采集系统和上位机LabVIEW温度监测系统两部分构成。系统整体结构框图如图1所示。
下位机采用AT89C51单片机为主控芯片,将6路DS18B20温度传感器测量的数据处理后,计算出各通道的实际温度值,并按要求在LM041L液晶屏上同步显示。……