摘要
S-function的功能是通过Matlab或c语言程序,设计出可实现所需功能的模块,将其与Simulink有机地结合,可充分发挥Simulink的优势,扩充Simulink的仿真功能,不但仿真模型简单,而且大大降低了编程的难度,特别适合于复杂控制系统的仿真。文中通过对二自由度机器人的轨迹跟踪编写了S-function程序,来说明该程序的实际应用并证明此方案的实用性。
S-FUNCTION is the shortened form of the control term called stem Function.Its main function is to design functional model we needed through programs which were usually written in Matlab or Clanguage.When combined with Simulink,it can make full use of the advantage of Simulink,and also it can greatly extend the simulation function of Simulink.In addition,it not only has the simple models compared to the model which uses the conventional Simulink method,but also greatly reduced the difficulty we will encounter when designing simulation program.From what was mentioned above,we can safely draw the conclusion that the method of S-function combined with Simulink is more suitable to the complex control system due to it’s all advantages. In the papers,we wrote two S-FUNCTION programs of different functions based on the example of two degree robot’s path tracking.Through the program and the simulation result,it is strongly proved that S-function can not onlyimplify the model but also make the simulation program easier to write。So it is an efficient way for simulation,especially for complex control systems.
出处
《邢台职业技术学院学报》
2004年第5期52-55,共4页
Journal of Xingtai Polytechnic College
基金
河北省教委科技攻关项目(A393)