虚拟仪器技术在测控系统中的应用摘要:本文描述了基于虚拟仪器思想在实际测控系统中的应用。
通过选用多功能数据采集卡和信号调理电路组成自动测试系统,软件开发以专业测控工具LabWindows/CVI为平台,实现了数据采集、分析和处理。
使整个测控系统既经济又便于操作,同时易于改进和功能扩展。
同时,与基于传统的开发平台的测控系统进行了比较。
Abstract: this paper describes the application in the actual measurement and control system based on virtual instrument. By choosing a multi-function data acquisition card and signal conditioning circuit of automatic test system, software development for professional measurement and control tool LabWindows/CVI platform, has realized the data collection, analysis and processing. The whole measurement and control system is easy to operate, economical and easy to improvement and function extension at the same time. At the same time, with development platform based on the traditional measurement and control system are compared.关键词:虚拟仪器;Labwindows/CVI;数据采集Key words: virtual instrument; Labwindows/CVI. The data collection1、引言1, the introduction虚拟仪器是以一种全新的理念来设计和发展的仪器,它是20世纪90年代发展起来的一项新技术。
虚拟仪器技术就是利用高性能的模块化硬件,结合高效灵活的软件来完成各种自动测试、过程控制、仪器设计、数据分析和自动化的应用。
灵活高效的软件能帮助您创建完全自定义的用户界面,其基本思想是在仪器设计或测试系统中尽可能用软件代替硬件,即“软件就是仪器”,它是在通用计算机平台上,根据用户需求来定义和设计仪器的测试功能,其实质是充分利用计算机的最新技术来实现和扩展传统仪器的功能,这种测试仪器的硬件功能软件化,给测试仪器带来了深刻的变化,因此虚拟仪器代表了当前测试仪器发展的方向之一。
Virtual instrument is a kind of brand-new idea to design and development of the instrument, it is a new technology developed in the 1990 s. Virtual instrument technology is the use of high-performance modular hardware, combined with highly efficient and flexible software to complete all kinds of automatic testing, process control, instrument design and data analysis and application of automation. Flexible and efficient software can help you create fully customizable user interface, its basic idea is as much as possible in instrument designing or testing system with software instead of hardware, namely "software is instrument", it ison general computer platform, according to user needs to define and design the instrument test function, its essence is the latest technology to make full use of the computer realization and extend the functionality of traditional instruments, this test instrument hardware capabilities of software, and brought profound changes to testing instruments, so virtual instrument represents one of the developing direction of the current testing instruments.2、虚拟仪器的特点和构成2, the characteristics of virtual instrument and composition2.1虚拟仪器的特点2.1 the characteristics of virtual instrument与传统仪器相比,虚拟仪器具有高效、开放、易用灵活、功能强大、性价比高、可操作性好等明显优点。
Compared with traditional instrument, virtual instrument has efficient, open, flexible and easy to use and powerful, cost-effective, good operability and other obvious advantages.2.2虚拟仪器的构成2.2 the composition of virtual instrument虚拟仪器的构建主要从硬件电路的设计、软件开发与设计两个方面考虑。
The construction of virtual instrument is mainly from the hardware circuit design, software development and design of the two aspects to consider.根据目前我们所完成的测试设备,硬件电路的设计一般是选择现有的各种不同功能的板卡以及信号调理板来搭建。
所选用板卡的功能包括:高速数据采集和信号转换;信号输出与控制;数据的A/D转换。
将具有一种或多种功能的板卡结合信号调理板组建起来,就能构成任何一种虚拟仪器。
例如使用高速数据采集板卡和高速实时数据处理就能构成1台示波器、1台数字化仪或1台频谱分析仪;使用数字量信号输入/输出板卡和实时数据处理就能构成1台函数发生器、1台信号源或1台控制器。
According to the present we have complete testing equipment, the hardware circuit design of the general is to select the existing various functions of the card and signal conditioning board to build. Chooses the card features include: high speed data acquisition and signal conversion; Signal output and control; The A/D conversion of data. Combine with functions of one or more of the card signal conditioning board together, can form any kind of virtual instrument. For example, using high speed data acquisition board and high-speed real-time data processing can constitute oneoscilloscope and 1 digitizer or 1 spectrum analyzer; Using digital signal input/output board and real-time data processing can constitute one function generator controller, one source or 1.3、虚拟仪器在实际测控系统中的应用3, the application of virtual instrument in the actual measurement and control system3.1虚拟仪器在航空机载电子测控系统中的应用3.1 virtual instrument application in airborne electronic measurement and control system测控系统在航空机载成件中起着举足轻重的作用,提高和完善测控系统的精度和测试能力对于整个飞机性能分析具有重要的意义。
我们主要完成了基于虚拟仪器的各型继电器盒、各型开关盒测控系统的测试。
使用数字采集板及工控机并在LabWindows/CVI开发平台中实现了对整个测试的电压采集、对各型继电器盒的逻辑状态及延时时间进行输出存储和分析。
Measurement and control system in the airborne pieces plays a pivotal role, enhance and improve the precision of the measurement and control system and testing capability for the aircraft performance analysis has important significance. We mainly completed each relay box based on virtual instrument, varioustypes of switch box control system test. Using a digital acquisition boards and industrial control in LabWindows/CVI development platform and implements a voltage acquisition for the entire test, for each relay box of the logic of the state and output delay time for storage and analysis.3.1.1 测试系统组成3.1.1 test system整个测控系统由美国NI公司的LabWindows/CVI8.0,研华的1块PCI_1751 48路数字量输入/输出板,2块PCI_1754 64路数字量输入板、2块PCLD_785B 24通道继电器输出板、6块PCLD_782 24通道光电隔离数字量输入板,1块PCL_818L 16通道A/D转换板、若干信号调理板及工控机组成。