Effacer les filtres
Effacer les filtres

For Loop inside a Triggered Subsystem

1 vue (au cours des 30 derniers jours)
Ross Brown
Ross Brown le 17 Jan 2012
Howdy, I am using Simulink (R2010a)
I am using a "For Loop Subsystem" to do recursive matrix calculations. For i = 1 to 8.
Once I got all the calculations correct, I put the whole thing inside a "Triggered Subsystem" .
Now the "For Loop" only executes once. For i = 1 to 1.
Has any one else seen this? Does anyone have suggestions.
Thanks.

Réponses (1)

Walter Roberson
Walter Roberson le 17 Jan 2012
I think I remember someone saying that a "for loop subsystem" takes as many time-steps as the number of loop iterations, but that when you are in a triggered subsystem, you only give it the one timestep of the trigger. You would need to trigger-and-hold or something like that.

Catégories

En savoir plus sur Subsystems dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by