检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.151