摘要
在准实时半实物仿真试验中,要求操作系统必须具有精确的时间和可预测性,在普通的Windows环境下多串口通信的可靠性和稳定性很难达到试验要求。为了满足仿真信息的实时性要求,介绍了在Windows环境下基于定时器和串口卡的多线程串口通信技术,重点说明了设计方案的实现方法和编程要点,给出了串口在准实时半实物仿真中与远程终端进行精确定时通信方法。结果证明,可以满足实时性和数据同步可靠性的要求,并在相关领域具有重要的参考价值。
The precise timing and divinable capability is needed in hardware-in-the-loop simulation.The reliability and stability in multi-serial port communication are hard to up to par.To meet the real-time need of the simulation information multithread serial communication technology based on timer card and serial communication card on Windows is introduced,especially the implemental method and the programme of the scheme,and the method of precise timing communication between serial port and remote terminals in quasi real-time hardware-in-the-loop simulation is presented.In the experiment,the real-time and reliability is improved.
出处
《航空计算技术》
2012年第2期123-125,共3页
Aeronautical Computing Technique
基金
国防预研基金项目资助(22110707)
关键词
多线程
串口通信
定时
仿真
multithread
serial communication
timing
simulation