在现代工业机械设备工作过程中,设备的许多部件会因为啮合、碰撞等原因受到磨损、破坏等故障。为了及时发现设备故障,需要实时监控设备运行状态并采集数据,保证采集过程中对所有数据的不漏采。根据这些要求和研华PCI-1706U数据采集卡,提出了一种DMA和双buffer结合的采集方法。该系统以C++为主要开发语言,借助MFC中封装的API函数,利用Visual Studio 2010为程序开发平台进行数据采集系统的开发。实验结果证明,采用双缓存的数据传输原理,不仅大大加快了数据传输的速度,而且减少了数据漏采问题,实现了数据的实时采集、传输与存储。
In the work process of modern industrial machinery and equipment,many parts are subject to wear,damage and other faults because of the engagement,collision,etc. In order to discover the equipment failure timely,we should take real-time monitoring to detect equipment running status by data collection,and ensure that all data collected completely.According to these requirements,this paper designed a kind of high-speed transmission data acquisition system based on advantech data acquisition card PCI-1706 U and acquisition method combining DMA and double buffer. The system uses C ++as the main development language. By means of the API function encapsulated in the MFC,the paper uses Visual Studio2010 as the application development platform to develop the data acquisition systems. Experimental results show that the system can accelerate the speed of data transmission greatly and reduce the data leak problem effectively by using the data transmission principle of double buffer,and realize real- time data acquisition,transmission and storage.