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, in real term
3、s 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 capabilities of a comput
4、er 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 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 La