
虚拟仪器和USB 的接口技术在仪器研发领域受到了密切关注. 数据采集及控制的智能外 设采用USB 接口改善了其瓶颈现象,也加强了它与通用计算机的“亲和力”. 普通的MCS251 单片机没有USB 接口,作为虚拟仪器应用软件开发平台之一的LabVIEW也没有提供USB 接口的驱动程序. 为此,介绍了基于USB 和LabVIEW的虚拟仪器的设计原理以及USB 开发的方法,提出一种开发简单的设计方案. 阐述了利用FT245BM 进行USB 开发的过程,给出FT245BM 与AVR 单片机AT90S1200 接口的电路图和编写的程序. 介绍了安装两种不同驱动时编写LabVIEW应用程序的方法,并给出编写的LabVIEW应用程序,经过调试,给出测试结果.
英文摘要:The technology of virtual inst rument and USB interface has been paid special attention in instrument design and development . The intellectual peripheral which adopting USB interface for data acquisition and control improves the bottleneck phenomenon of the communication , and strengthens ″affinity″of it with general computer too. General single-chip microcomputer MCS251 provides no USB interface. As an application software development platform of virtual inst rument ,LabVIEW also doesn′t offer USB driver of interface too. This paper int roduces the design principle of virtual inst rument s based on USB and LabVIEW briefly. A kind of simple and feasible scheme are put forward , the course of utilizing FT245BM to develop USB is explained ,circuit diagram of the interface between FT245BM and AVR single-chip AT90S1200 are given ,and program is offered. The approach to program with LabVIEW while installing two kinds of USB drivers are described and the LabVIEW application program is also given. These programs have been debugged ,and the test result s are provided.