摘要
采用Labview进行数据采集与控制时,通常需要使用NI公司专用的数据采集卡,但其价格昂贵,自己开发数据采集卡又很难解决与Labview的兼容问题。为了解决此问题,提出了基于共享内存的Labview数据采集系统的设计方法。该方法使读写进程使用同一物理内存,并可根据当前进程间通信的具体情况动态调整共享Buffer队列的长度,实现最小内存消耗最快速传递数据。实验结果表明:系统最大数据采集速率可以达到17.5MB/s,满足数据采集系统对数据的快速性要求,又合理地利用资源。在采集速率要求不是很高的情况下可以取代专用数据采集卡。
When using Labview for data acquisition and control, we usually need to use the NI company special data acquisition card,however,which is very expensive. And developing our own data acquisition card is very difficult to re-solve compatibility issues with Labview. To resolve this problem, in this paper a Labview data acquisition system de-sign based on the shared memory is proposed. The method enables the reading and writing process to use the same physical memory. And the shared Buffer queue length can be adjusted dynamically according to the specific circumstanc-es of the communication between the current process;ultimately the most rapid transmission of data with minimal mem-ory consumption is achieved. Experimental results show that the system has a maximum data acquisition rate of 17.5MB/s, which meets the data acquisition system data requirements and reasonable use of resources. This method can replace a dedicated data acquisition card when acquisition rate is not very high demands.
出处
《长春理工大学学报(自然科学版)》
2013年第5期137-139,共3页
Journal of Changchun University of Science and Technology(Natural Science Edition)
基金
31基地项目