摘要
RT-LAB是加拿大Opal-RT公司开发的一套基于模型的实时仿真软件包,广泛应用于航空航天、武器研制、汽车等各个领域,因而对基于该平台的设备驱动程序的需求也越来越多;在简单介绍了RT-LAB软件包工作原理之后,分析了RT-LAB环境下PCI板卡驱动程序的实现方法,以NI6230多功能数据采集卡的驱动程序开发为例,介绍了驱动程序开发的方法及编程要点,给出了RT-LAB下驱动程序的基本框架,从逻辑上将驱动程序分为命令站程序和目标机程序两部分,并提供了部分关键代码;在某导弹半实物仿真系统中的运行结果表明该驱动程序运行稳定、可靠。
RT-LAB is a real-time simulation software based on model which is developed by RT-LAB Company, and is very popular used in aeronautics and astronautics, weapon design, automobile and so on, so there are more and more requirements to develop the device driver for hardware under RT-LAB. After introducing the work theory of RT-LAB, the method of developing PCI device driver in RT-LAB is analyzed. According to a device driver example of NI6230 data acquisition board in RT-LAB, the method and essential of programming device driver are presented, the main frame is given, and some key programs are provided. The driver has been used in certain missile hardware-in-the-loop simulation system, the result indicates that the device driver is stable and credible.
出处
《计算机测量与控制》
CSCD
北大核心
2009年第4期776-778,共3页
Computer Measurement &Control