摘要
S-function是system function的简称,其功能是通过Matlab或c语言程序,设计出可实现所需功能的功能模块,将其与Simulink有机地结合,可充分发挥Simulink的优势,扩充Simulink的仿真功能,不但仿真模型简单,而且大大降底了编程的难度,特别适合于复杂控制系统的仿真。文中通过对二自由度机器人的轨迹跟踪这个控制对象,编写了S-FUNCTION程序,来说明该程序的实际应用并证明此方案的实用性。
S-FUNCTION is the shortened form of the control term called as system function. It抯 main function is to design functional model which is implemented through programs usually written in Matlab or C language。When combined with Simulink, it can make full use of the advantage of Simulink, and also it can greatly extend the simulation function of Simulinks. In addition, it does not only have much simpler models than those which result from conventional Simulink methods, but also can greatly reduce the difficulty we will encounter when designing simulation program. Therefore, we can safely draw a conclusion that the method of S-function combined with Simulink is more suitable to the complex control system due to it抯 all advantages. In order to demonstrate how to use the S-FUNCTION, we write two S-FUNCTION programs of different functions based on the example of two degree robot抯 path tracking in the paper. The simulation results show that S-function can not only simplify the model but also make the simulation program more easier to write. So it is an efficient way for simulation, especially for complex control systems.
出处
《系统仿真学报》
CAS
CSCD
2001年第z1期131-132,167,共3页
Journal of System Simulation