which one do u prefer when making for loop in simulink
Mostra commenti meno recenti
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?
Risposte (1)
Mark McBroom
il 29 Dic 2022
0 voti
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 Commenti
진회 김
il 29 Dic 2022
Mark McBroom
il 29 Dic 2022
Can you temporarily run the signals of interest out of the subsystem and then watch the data?
진회 김
il 3 Gen 2023
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!