which one do u prefer when making for loop in simulink
2 次查看(过去 30 天)
显示 更早的评论
Now i try to make for loop system in simulink.
I know that there are two main way to make for loop. Using for iterator or making using state flow.
But i dont know which one is better way to make for loop system in model control
would you recomend me?
0 个评论
回答(1 个)
Mark McBroom
2022-12-29
The decision on which to use is purely up to you and your desired modeling pattern. If you are using primarily Simulink then I would recommend using the Simulink For Iterator or For Each Subsystem.
Using Stateflow or ML Function block results in a slighty longer initialization time ( C code is generated and compiled for simulation ).
Thanks.
Mark.
3 个评论
Mark McBroom
2022-12-29
Can you temporarily run the signals of interest out of the subsystem and then watch the data?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Schedule Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!