摘要
针对抢先式多任务的Windows系统在飞行器分布式半实物仿真系统中难以实现"大容量高速率"数据实时接收、存储以及显示的问题,提出了一种基于多缓冲循环读写技术的实时数据管理方案;采用VMIPCI-5565反射内存的硬件中断机制提高了Windows的实时性,采用多缓冲循环读写技术以及"先入先出"消息队列机制有效解决了实时数据与计算机硬盘存储速度不匹配带来的存储丢帧和数据丢帧问题,采用多线程技术实现了数据的实时采集、实时存储与实时显示的同步运行;测试表明,半实物仿真系统数据管理节点的实时性能达5ms,数据存储丢帧率不大于0.002%,具有良好的工程应用价值。
The Preemptive multitasking characteristic of Windows made it difficult to realize real--time reception, storage, display of the "large capacity and high rate" data in distributed hardware--in--the--loop simulation (HILS) system. A real--time data management scheme based on multi--buffer circular reading and writing method was proposed in this paper. The real--time performance of Windows was improved by hardware interrupt mode of VMIPCI-- 5565 reflected memory card. The phenomenon of data jamming and frame dropping, caused by mismatching of real--time data and hard disk writing speed, was resolved by multi--buffer circular reading and writing method and the FIFO message--queue mechanism. Real--time data collection, storage and display were realized synchronously by VC++ multi--threa- ding technology. Experimental results showed that the data management node of HILS has good Engineering application value with Real-- time performance of 5ms and frame dropping rate of 0. 002%.
出处
《计算机测量与控制》
北大核心
2013年第1期227-229,239,共4页
Computer Measurement &Control
关键词
数据管理
半实物仿真
反射内存
多缓冲
多线程
data management
HILS
reflected memory
multi--buffer
multi--threading