摘要
Simulink支持各种动态系统的建模仿真。S函数是整个Simulink动态系统的核心,通过S函数可将系统的数学方程表达式与方框图表达形式联系起来。探讨了S函数的建模和仿真问题,研究在S函数中使用M文本方式输入公式、方程,非常适合复杂动态系统的数学描述。用Simulink模块库中传递函数模块作对编写的M文件S函数模块与了对比实验,并对编制调试好S函数进行了编译,编译后的S函数通过了仿真速度测试脚本文件,结果验证了编译后S函数的仿真执行速度大致会提高了一倍。
Simulink supports a variety of dynamic systems modeling and simulation. Simulink S-function is the dynamic core of the system, the S-function to the system block diagram of mathematical equations and expressions hnked to forms of expression. Discusses the S-function modeling and simulation problems is to study the use of M in S-function input text formulas, equations, well suited for the mathematical description of complex dynamic systems. Simulink block library with the transfer function of the module against M-file S-functions written in the module and the comparative experiments, and the preparation tested by S-function has been compiled, the compiled S-function simulation speed through the test script file, compiled the results verified S-function simulation execution speed will roughly doubled.
出处
《电子设计工程》
2011年第18期27-29,32,共4页
Electronic Design Engineering