摘要
针对Matlab/RTW对硬件编程能力的不足,基于网络远程闭环控制系统,采用C-MEX函数编写硬件驱动程序,经过编译后生成DLL文件,在Simulink中使用S函数调用DLL文件,达到扩展Matlab对硬件编程的能力,使用RTW工具箱生成的C代码并下载到基于ARM技术的网络远程控制器和现场控制器中实现实时远程在线控制,取得了预期的控制效果。
In order to improve Matlab/RTW's deficiency in hardware programming, C-MEX function is used to make the hardware driver. Based on remote network closed loop control system, the purpose of expanding the capacity of Matlab for hardware programming can be reached as the following: translate and edit to generate DLL file, use the S function of Simulink to transfer DLL file, and use RTW to generate C code, then download the created C code to remote network controller and field controller based on ARM technology. Thus, expected results of online remote control in real time can be achieved.
出处
《计算机工程》
CAS
CSCD
北大核心
2007年第15期241-242,245,共3页
Computer Engineering
基金
北京市教委科技发展计划基金资助项目(KM200310009033)
关键词
RTW
C-MEX文件
网络远程闭环控制
real time workshop (RTW)
C-MEX file
remote network closed loop control Matlab