首页> 中文期刊> 《计算机测量与控制》 >基于S-Function的xPC目标环境下I/O板卡驱动开发

基于S-Function的xPC目标环境下I/O板卡驱动开发

         

摘要

The driver design for I/O board in xPC target environment based on C MEX S is developed. xPC and VMIC are used to build a real-time environment and network respectively for rapid prototyping of a control system and hardware simulation and testing in the circuit. It' s more convenient than the traditional senii-physical simulation. The real -time communication with hardware by I/O boards is the basic to achive semi- physical simulation. Recounting the preparation of S-Function, the basic concepts of PCI bus. And the key issues of writing driven in xPC environment, according to these theory, achived the driver design for the ADLINK multifunction DAQ boards in xPC environment. Drive test results show that, AD and DA boards can perform stability, stable communications, data error is small, the method has strong portability and reference.%提出了xPC目标环境下采用C MEX S函数实现I/O板卡驱动的开发方法;采用xPC建立实时环境,通过反射内存卡组成实时网络,来实现控制系统的快速原型化和硬件在回路仿真测试,与传统的半物理仿真相比要快捷很多;与硬件设备实时通讯的I/O板卡是实现半物理实时仿真的基础;详细介绍了S-Function的编写、PCI总线的基本概念以及xPC环境下编写驱动的关键问题,在此基础上实现了ADLINK多功能DAQ板卡在xPC环境下的驱动开发;驱动测试结果表明,AD板卡和DA板卡都能稳定工作,通讯稳定,数据误差小,该方法具有较强的移植性和参考性.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号