1、 摘要 虚拟仪器是现代计算机技术同仪器技术深层次结合的全新概念仪器, 实质是利用 计算机显示器的显示功能模拟传统仪器的控制面板,以多种形式表达输出测量结果, 利用计算机强大的软件功能实现信号数据的运算、分析和处理,完成各种测试功能的 一种计算机仪器系统。 本文介绍了利用 LabVIEW 语言来实现上、下位机之间通信的方法,并从软、硬件 两个方面阐述了设计思想。从实现 PC 机 PC 机之间的串口通信出发,先实现双 PC 机 之间的数据发送、返还和接收,进而设计了以 PC 机作为上位机,以飞思卡尔8位单片 机作为下位机的基于 labview 软件的串口通信系统。经过实验调试,系统达到了预期 的通
2、信目标。 应用先进的虚拟仪器软件 LABVIEW,大大降低了串口通讯复杂程度,减小了软件 设计的工作量,能够大大降低投资成本。在实际应用中有巨大的使用价值。 关键词: 虚拟仪器;Labview ;串口通信;单片机 Design of the serial communication system Based on LabVIEW Abstract Virtual instrument is the modern computer technology combined with the instrumentation of the new concept of deep-level instr
3、uments, 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 capa
4、bilities 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. PC-PC, from the implementation of serial communication between the departu
5、re, the first to achieve double the data between the PC, send and return, receive, and then designed a PC, as the host computer to Freescale 8-bit microcontroller based on a lower machine LabVIEW software serial communication system. After experimental debugging, the system achieved the desired comm
6、unication goals. The application of advanced virtual instrument software LabVIEW, greatly reduces the complexity of serial communication, reduce the workload of the software design can greatly reduce the investment cost. In practice, there is tremendous value in use. Keywords: virtual instrument; Labview; serial communication; microcontroller 目录 第 1 章 绪论 1 1.1 课题的背景和意义. 1 1.2 虚拟仪器的概念. 1 1.2.1 虚拟仪器的特点 1 1.2.2 虚拟仪器和传统仪器的区别 2 1.3 虚拟仪器概述. 3 1.3.1 虚拟仪器方案的组成 3 1.3.2 虚拟仪器方案的优势 4 1.4 虚拟仪器的发展与