基于LabVIEW的普通数据采集卡驱动研究
2010-05-13武剑,李巴津
武 剑,李巴津
摘 要:针对功能强大,应用广泛的虚拟仪器开发软件LabVIEW只能直接支持NI公司的数据采集卡,而不能直接使用普通数据采集卡的问题。重点研究在LabVIEW平台下驱动普通数据采集卡的重要方法即调用动态链接库,并结合具体实例介绍了在LabVIEW中调用动态链接库的关键技术及步骤,实现了LabVIEW与普通数据采集卡的结合。实际证明,采用这种方法省去了复杂的语言编程,缩短了软件的开发时间,节约了系统开发成本,同时也增加了应用的灵活性。
关键词:LabVIEW;动态链接库;虚拟仪器;数据采集
中图分类号:TP399文献标识码:A
文章编号:1004-373X(2009)12-149-03
Research on Driver of General Data Acquisition Card Based on LabVIEW
WU Jian,LI Bajin
(College of Information Engineering,Inner Mongolia University of Technology,Hohhot,010051,China)
Abstract:Facing the problem that virtual instrumentation development software such as LabVIEW can only support its company′s card and can not support other company′s DAQ card,an important method of using an ordinary DAQ card in virtual instrumentation development software which is calling dynamic link library functions is studied.And from the examples,the key process and procedure of calling dynamic link library functions in LabVIEW is presented.It realizes the combination of LabVIEW and ordinary DAQ card.It proves that this method can avoid the complicated computer program,shorten software-developing time,save cost and increase the application agility.
Keywords:LabVIEW;dynamic link library;virtual instrument;data acquisition
0 引 言
虚拟仪器技术是20世纪90年代发展起来的一种新技术,融计算机和总线技术、微电子技术、测量技术于一身,它是对传统仪器的重大突破,是计算机技术与仪器技术相结合的产物。它利用计算机系统的强大功能,结合相应的硬件,大大突破传统仪器在数据处理、显示和存储以及系统维护和扩展等方面的限制。虚拟仪器的众多优点使其得到了广泛的应用,然而当今著名的虚拟仪器开发软件(如LabVIEW等)只能支持NI公司生产的数据采集卡,而不能直接驱动普通的数据采集卡。本文重点研究了在虚拟仪器开发软件平台LabVIEW下使用普通数据采集卡的方法。
1 虚拟仪器开发平台 LabVIEW与数据采集卡的连接
LabVIEW是美国NI公司推出的一种基于G语言(Graphics Language),即图形化编程语言的虚拟仪器软件开发工具,具有强大的数据采集功能,通常只支持NI公司的数据采集卡,而这些卡的价格比较昂贵。……
