Azzera filtri
Azzera filtri

Runtime in subsystem Simulink

3 visualizzazioni (ultimi 30 giorni)
Kris
Kris il 4 Giu 2012
Hello,
When i have a model in Simulink wich contains an If iterator that actives a subsystem at a certain condiction. How does the time model work?
If the main model triggers the subsystem at step 10 for instance. (1,2,3,...,10) , how does the subsystems timeframe work? If i allow a stepsize of 96 (24*4, each quarter hour i make a calculation) Does it count to 96 in the subsystem untill it evaluetes to step 11 in the main model?

Risposte (1)

Kaustubha Govind
Kaustubha Govind il 5 Giu 2012
From what I understand, you have a For Iterator system that runs for 96 iterations inside an Enabled Subsystem that is enabled at t=11. Is that correct?
The For Iterator counts up to 96 at each time-step. So it is will wait until t=11, when the parent is enabled, and then starts executing 96 times at each time-step while the parent is enabled.

Categorie

Scopri di più su Programmatic Model Editing in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by