摘要
历史数据是工业生产中设备运行产生的实时数据记录。针对国产PLC上位机监控系统的数据收集和存储过程中数据量过大、效率低等问题,设计出一种跨平台的、满足工业生产要求、利于问题回溯的收集存储方式。通过关键帧和变更集的方式进行数据压缩和收集。划分多个内存缓冲区并利用时间戳的变化实现自动切换,提升数据的读写效率。同时采用Qt的信号和槽机制触发线程进行数据存储操作,实现数据收集和存储同时进行。在Windows和Linux操作系统平台上运行,其功能和性能皆达到设计要求。
Historical data is the real-time data record generated by the operation of equipment in industrial production.Aiming at the problems such as oversize of data,low efficiency in the process of data collection and storage of domestic PLC monitor and control system,a cross-platform,meeting the requirements of industrial production,facilitating the backtracking of problem collection and storage method is proposed.Data is compressed and collected by using the way of key frames and change sets.This design divides multiple memory buffers and uses timestamp change to achieve automatic switching so as to enhance data read and write efficiency.Meanwhile,the signal and slot mechanism of Qt are used to trigger the thread for data storage operation,which implements data collection and storage at the same time.Running on Windows and Linux operating system platforms,both function and performance of the design meet the requirements.
作者
钟洋洋
王毅璇
王皓
傅一帆
Zhong Yangyang;Wang Yixuan;Wang Hao;Fu Yifan(National Computer System Engineering Research Institute of China,Beijing 100083,China)
出处
《电子技术应用》
2018年第12期111-114,共4页
Application of Electronic Technique
基金
核高基重大专项(2017ZX01030202)
关键词
历史数据
收集
存储
historical data
collection
storage