长春理工大学学报(自然科学版)
長春理工大學學報(自然科學版)
장춘리공대학학보(자연과학판)
JOURNAL OF CHANGCHUN UNIVERSITY OF SCIENCE AND TECHNOLOGY(NATURAL SCIENCE EDITION)
2013年
5期
137-139
,共3页
张利娟%王晓曼%景文博%刘树昌
張利娟%王曉曼%景文博%劉樹昌
장리연%왕효만%경문박%류수창
Labview%数据采集系统%共享内存%动态链接库
Labview%數據採集繫統%共享內存%動態鏈接庫
Labview%수거채집계통%공향내존%동태련접고
Labview%data acquisition system%shared memory%dynamic link library
采用Labview进行数据采集与控制时,通常需要使用NI公司专用的数据采集卡,但其价格昂贵,自己开发数据采集卡又很难解决与Labview的兼容问题。为了解决此问题,提出了基于共享内存的Labview数据采集系统的设计方法。该方法使读写进程使用同一物理内存,并可根据当前进程间通信的具体情况动态调整共享Buffer队列的长度,实现最小内存消耗最快速传递数据。实验结果表明:系统最大数据采集速率可以达到17.5MB/s,满足数据采集系统对数据的快速性要求,又合理地利用资源。在采集速率要求不是很高的情况下可以取代专用数据采集卡。
採用Labview進行數據採集與控製時,通常需要使用NI公司專用的數據採集卡,但其價格昂貴,自己開髮數據採集卡又很難解決與Labview的兼容問題。為瞭解決此問題,提齣瞭基于共享內存的Labview數據採集繫統的設計方法。該方法使讀寫進程使用同一物理內存,併可根據噹前進程間通信的具體情況動態調整共享Buffer隊列的長度,實現最小內存消耗最快速傳遞數據。實驗結果錶明:繫統最大數據採集速率可以達到17.5MB/s,滿足數據採集繫統對數據的快速性要求,又閤理地利用資源。在採集速率要求不是很高的情況下可以取代專用數據採集卡。
채용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.