首页 | 本学科首页   官方微博 | 高级检索  
     

基于S-Function的xPC目标环境下I/O板卡驱动开发
引用本文:杨婷,李长星,樊华. 基于S-Function的xPC目标环境下I/O板卡驱动开发[J]. 计算机测量与控制, 2012, 20(4): 1101-1104
作者姓名:杨婷  李长星  樊华
作者单位:西安石油大学电子工程学院,陕西西安,710065
摘    要:提出了xPC目标环境下采用C MEX S函数实现I/O板卡驱动的开发方法;采用xPC建立实时环境,通过反射内存卡组成实时网络,来实现控制系统的快速原型化和硬件在回路仿真测试,与传统的半物理仿真相比要快捷很多;与硬件设备实时通讯的I/O板卡是实现半物理实时仿真的基础;详细介绍了S-Function的编写、PCI总线的基本概念以及xPC环境下编写驱动的关键问题,在此基础上实现了ADLINK多功能DAQ板卡在xPC环境下的驱动开发;驱动测试结果表明,AD板卡和DA板卡都能稳定工作,通讯稳定,数据误差小,该方法具有较强的移植性和参考性。

关 键 词:xPC目标  驱动开发  PCI总线  S-Function

Driver Development for I/O Board in xPC Target Environment Based on S-Function
Yang Ting , Li Changxing , Fan Hua. Driver Development for I/O Board in xPC Target Environment Based on S-Function[J]. Computer Measurement & Control, 2012, 20(4): 1101-1104
Authors:Yang Ting    Li Changxing    Fan Hua
Affiliation:1.School of Electronic Engineering,Xi’an Shiyou University,Xi’an 710065,China; 2.School of Automation,Northwestern Polytechnical University,Xi’an 710129,China)
Abstract: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 semi-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.
Keywords:xPC target  driver development  PCI-bus  S-function
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号