摘要: 针对Matlab/RTW对硬件编程能力的不足,基于网络远程闭环控制系统,采用C-MEX函数编写硬件驱动程序,经过编译后生成DLL文件,在Simulink中使用S函数调用DLL文件,达到扩展Matlab对硬件编程的能力,使用RTW工具箱生成的C代码并下载到基于ARM 技术的网络远程控制器和现场控制器中实现实时远程在线控制,取得了预期的控制效果。
关键词:
RTW,
C-MEX文件,
网络远程闭环控制
Abstract: 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.
Key words:
real time workshop (RTW),
C-MEX file,
remote network closed loop control
中图分类号:
孙德辉;李天宇;王 超. RTW技术在网络远程闭环控制系统中的应用[J]. 计算机工程, 2007, 33(15): 241-242,.
SUN De-hui; LI Tian-yu; WANG Chao. Application of RTW Technology in Remote Network Closed Loop Control System[J]. Computer Engineering, 2007, 33(15): 241-242,.