多步长仿真如何在Simulink中实现?。

30 views (last 30 days)
wohotef
wohotef on 30 Nov 2022
Answered: jalaga on 30 Nov 2022
如题目所示,若我需要在一个模型中搭建A、B两个模块,其中A模块的输出将作为B模块的输入,我想令A模块的计算步长为1s、B模块的计算步长为10s,当A模块运行10次(即10s)时,B模块只运行1次(同样经历10s)。请问各位大神有什么办法可以实现?

Accepted Answer

jalaga
jalaga on 30 Nov 2022
Simulink有一个基础步长,就是你在configuration--》solver里面设置的步长。
然后可以对subsystem 、block单独设置各种步长,但这些自定义的步长需要是基础步长的整数倍。
按照你这种情况,基础步长可以设置为1, 对B subsystem右键property,sample time设置为10就可以了。

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!