[关键词]
[摘要]
讨论了MATLAB 及C 混合编程的优点,介绍了C-MEX 的实现原理,并结合A/ D 性能测试设备的开发,在MATLAB环境中编写VME 总线平台下硬件读写程序,解决了MATLAB 不能直接访问底层硬件的问题,给出了软件设计流程。结果表明:该方法提高了系统实时性能,简化了编程步骤,较好地发挥了C 与MATLAB 软件的整体优势。
[Key word]
[Abstract]
This paper discusses the advantage of the mixed鄄programming of MATLAB and C,and introduces the principle of C-MEX method. Using this method, the VME bus driver for data read and write in the development of an A/ D specification testing equipment is utilized, this resolves the problem that MATLAB cannot access hardware directly. The programming steps are given. It is approved that this method can improve the real-time specification, simplify the software programming ,and make full use of the advantages of MATLAB and C.
[中图分类号]
[基金项目]