摘要
针对传统文件存储方法速度慢、实时性差等问题,给出一种基于LabVIEW的采集数据的快速文件存储方法.该方法采用"生产者-消费者"双消费者模式,将数据采集与数据处理同步进行,即,将数据处理中的文件存储、计算、显示等同步执行,使文件存储处理可连续执行存储操作,且选用TDMS文件存储格式来加快文件存储速度.为测试本方法的有效性,搭建了一套集数据采集,USB数据传输,波形显示及数据存储功能于一体的软硬件测试平台.结果表明,对相同时间采样数据的文件存储,比传统方法耗时更少,且采样时间越长,存储时间越短.
Aiming at the problems of slow speed and poor realtime performance of traditional file storage methods,a fast file storage method for collecting data is presented.The method adopts the dual consumption mode of producer and consumer,synchronizing data acquisition and data processing.Namely,we synchronize the storage,calculation,and display of files in data processing,making file storage processing sustainable,with TDMS file storage format further accelerating the speed of file storage.In order to test the validity of the method,a set of software and hardware testing platform is built with data acquisition,USB data transmission,waveform display and data storage function.The result shows that the sampling data takes less time than the traditional file storage method at the same time,and the longer the samplingtime,the higher the efficiency.
作者
李俊娇
朱磊
张晓丹
郭华
遆宁
LI Junjiao;ZHU Lei;ZHANG Xiaodan;GUO Hua;DI Ning(School of Elcctronics and Information,Xi' an Polytcchnic Univcrsity,Xi' an 710018,China)
出处
《西安工程大学学报》
CAS
2018年第3期311-315,323,共6页
Journal of Xi’an Polytechnic University
基金
国家自然科学基金(61401347)
陕西省科技厅工业科技攻关项目(2016GY-101)
陕西省教育厅自然科学基金(17JK0343)
西安工程大学博士科研启动基金(BS1410)