LabView 与 单 片 机 通 信 设 计摘 要虚拟仪器是现代计算机技术同仪器技术深层次结合的全新概念仪器,实质是利用计算机显示器的显示功能模拟传统仪器的控制面板,以多种形式表达输出测量结果,利用计算机强大的软件功能实现信号数据的运算、分析和处理,完成各种测试功能的一种计算机仪器系统。本文介绍了利用LabView 语言来实现上、下位机之间通信的方法,并从软 、 硬 件 两 个 方 面 阐 述 了 设 计 思 想 。 在 简 要 介 绍 图 形 化 虚 拟 仪 器 平 台LabView 的基础上, 分析STC12C5A60S2 单片机与LabView 之间的串口通信模式, 并结合该设计中设计的温度检测系统给出串口通信的软、硬件设计。应用先进的虚拟仪器软件LabView ,大大降低了串口通讯复杂程度,减小了软件设计的工作量,能够大大降低投资成本。在实际应用中有巨大的使用价值。关键词:单片机,LabView ,串口通信Design of MCU Serial CommunicationBased on LabViewABSTRACTVirtual instrument is the modern computer technology combined with the instrumentation of the new concept of deep-level instrument, in real terms 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 computer 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 LabView, greatly reduces the complexity of serial communication, redu...