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

Driver Development for I/O Board in xPC Target Environment Based on S-Function

在线阅读下载全文

作  者:杨婷[1] 李长星[1] 樊华[1] 

机构地区:[1]西安石油大学电子工程学院,陕西西安710065

出  处:《计算机测量与控制》2012年第4期1101-1104,共4页Computer Measurement &Control

摘  要:提出了xPC目标环境下采用C MEX S函数实现I/O板卡驱动的开发方法;采用xPC建立实时环境,通过反射内存卡组成实时网络,来实现控制系统的快速原型化和硬件在回路仿真测试,与传统的半物理仿真相比要快捷很多;与硬件设备实时通讯的I/O板卡是实现半物理实时仿真的基础;详细介绍了S-Function的编写、PCI总线的基本概念以及xPC环境下编写驱动的关键问题,在此基础上实现了ADLINK多功能DAQ板卡在xPC环境下的驱动开发;驱动测试结果表明,AD板卡和DA板卡都能稳定工作,通讯稳定,数据误差小,该方法具有较强的移植性和参考性。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 cir- cuit. 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 muhifunction 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目标 驱动开发 PCI总线 S--Function 

分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象