1、基于 LabVIEW 的仿真信号发生器的设计 I 基于 LabVIEW的仿真信号发生器的设计 摘 要 本文首先概述了信号发生器及虚拟仪器技术在国内外的发展及趋势, 然后介 绍了信号发生器的相关理论,给出了信号发生器的基本原理框图,并探讨了虚拟 仪器的总线及其标准、框架结构、LABVIEW 开发平台。在分析本系统功能需求 的基础上,介绍了数据采集卡、LABVIEW 的编程模式等设计中所涉及到的硬件 和技术。本设计采用 USB6211 数据采集卡,将虚拟仪器技术用于信号发生器的 设计。该系统具有生成正弦波、方波、三角波、锯齿波的功能。 本设计是虚拟仪器模拟真实仪器的尝试。 实践证明虚拟仪器是一种优
2、秀的解 决方案,能够实现各种硬件可以完成的任务。 关键词 LabVIEW 数据采集卡 信号发生器 基于 LabVIEW 的仿真信号发生器的设计 II Based on the simulation signal generator labview the design ABSTRACT This article summarizes the development and trend of the signal generator and virtual instrument at home and abroad at first. And then introduces the theory
3、 of signal generator, gives a basic block diagram of signal generator, also the frame structure and LabVIEW development platform of the virtual instrument with the inquiry of the buss standard. Based on the analysis of this systems functional requirements, this article introduces the hardware and te
4、chnology which involved in design of the data acquisition card and the LabVIEWs programming modes. This design uses USB6211 data acquisition card. The virtual instrument technology has been utilized in the design of signal generator. The system has ability to produce sine wave, square wave, and tria
5、ngle wave, saw tooth wave and PWM wave. The design is an attempt of virtual instrument to simulate the reality instrument. It shows the virtual instrument is an excellent solution to achieve the task which is achieved by traditional hardware in the past. KEY WORDS LabVIEW Data AcquisitionCards Signa
6、l Generator 目 录 摘摘 要要 . I ABSTRACT . II 1 绪论绪论 .1 1.1 研究背景及动态 1 1.2 虚拟仪器发展前景 .1 2 LabVIEW 设计的总体概述设计的总体概述 .3 2.1 LabVIEW 的介绍 .3 2.2 设计的目的及其要求 .4 2.3 设计的基本流程和方案 .5 3 数据采集的介绍与应用数据采集的介绍与应用 .7 3.1 数据采集的系统构成 .7 3.2 数据采集卡的选择 .8 3.2.1 数据采集卡的主要性能指标 .9 3.2.2 数据采集卡的组成 9 3.2.3 数据采集卡 USB-6211 . 10 3.3 数据采集的硬件的安装与配置 10 3.4 数据采集的子程序 . 11 3.5 模拟输入 12 3.5.1 创建虚拟通道函数 12 3.5.2 定时设定 VI . 13 3.5.3 DAQmx 触发设定 VI 13 3.5.4 DAQmx读取 VI . 14 3.6 模拟输出 15 4 虚拟仪器软件硬件的设计虚拟仪器软件硬件的设计 17 4.1 虚拟仪器硬件平台 . 17 4.2.1 PC 机 17 4.2.