基于CPLD的数据采集系统设计.docVIP

  • 5
  • 0
  • 约6.44千字
  • 约 6页
  • 2019-06-26 发布于湖北
  • 举报
PAGE 基于CPLD的数据采集系统设计 摘要:本文介绍了开发虚拟仪器的过程,对利用虚拟仪器技术及Visual Basic软件构建示波器的软、硬件进行了研究,使用高性能的可编程逻辑器件(CPLD)实现数字电路的控制,并使用该器件基于串口实现了一种新的数据采集系统。试验结果表明,利用虚拟仪器技术构建的示波器不仅能实现传统示波器的基本功能,而且能够存储、再现、分析和处理波形,系统的灵活性更大,有利于用户自定义仪器的功能,从而可节省购置费用。 关键词:虚拟仪器;数据采集;CPLD;Visual Basic ;串口通信 中图分类号: 文献标识码:A Design of Data Acquisition System Based on CPLD WU Chun-rong1, WU Jian-ping2 School of National Defense Science Technology, Southwest University of Science and Technology, Mianyang Sichuan 621010,China; 2. College of Applied Nuclear Technology and Automation Engineering, Chengdu University of Technology, Chengdu 610059, Abstract: In this paper, the whole procedure of developing the virtual instrument is introduced, the software and hardware of structuring the oscilloscope by using virtual instrument technology and Visual Basic are studied, and the control of digital circuits is realized by applying the high-performance programmable logic device (CPLD), and a new kind of data acquisition system is achieved based on the CPLD and serial port as well. The experiment result shows that the virtual instrument technology -constructed oscilloscope not only can realize the fundamental function of the traditional oscilloscope, but also can store, reproduce, analyze and dispose the waveforms. The system has more flexibility, it is conducive to HYPERLINK app:ds:define \t define the instrumental function by users own, and thus the purchase expenses can be economized. Keywords: Virtual Instrument; Data Acquisition; Complex Programmable Logic Device (CPLD); Visual Basic; Serial Communication 0 引言 多传感器的融合作为21世纪的高、新科技技术应用,正引起国内外电子信息界的高度重视。利用多种传感器的并行、信息融合的功能对测量数据进行校正。使传感器在测量时候能够更加的准确快速。系统实现单片机和CPLD综合对传感器输出的采集,通过建模,对测量量进行校正,以及实现在测量某个量时通过计算机控制实现对环境的改变,实现远程和智能控制。采用CPLD实现多传感器的数据采集功能,组成通用的电子测量平台,由测量硬件采集、计算机处理得到测量结果,并以数据、曲线、图形的方式显示在计算机的显示屏上,同时测量结果也可以通过计算机进行处理分析以及记录保存。 1 系统分析与总体设计 1.1 系统结构分析与功能设计 本系统需要完成基本的数据采集和传输通信,提供的功能如下: 信号采集与控制——其主要功能是实现对信号的采集、测量、转换与控制。 数据分析与处理——虚拟仪器充分利用计算机的存储、运算功能,通过软件实现对输入数据信号的分析与处理。 测

文档评论(0)

1亿VIP精品文档

相关文档