Thread Subject: Simulink iteration blocks: how they work?!

Subject: Simulink iteration blocks: how they work?!

From: Giacomo

Date: 2 Sep, 2009 12:06:02

Message: 1 of 2

Maybe I didnt understand how simulink iteration blocks like While or For works.
I have a For iteration and inside it 2 while iterator; these subsystems have IC so that if the sensor value is below a costant while#1 should run, as the sensor value is higher while#2 should run. Now the problem is that both whiles are runned at the same time....I can say this because there is a command that is present in the while#2 only cycle and it run even if the IC if false!
I though that once the model enter a while cycle it runs the blocks inside the while subsystem until the IC is true; when the IC become FALSE it exit the cycle and move on to the next step. Why its not working like this? :(

Subject: Simulink iteration blocks: how they work?!

From: Giacomo

Date: 28 Sep, 2009 07:07:04

Message: 2 of 2

Anybody can help? Still havent solved the problem :(

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
simulink Sprinceana 28 Sep, 2009 03:37:31
iteration block Sprinceana 28 Sep, 2009 03:37:31
while Sprinceana 28 Sep, 2009 03:37:31
for Sprinceana 28 Sep, 2009 03:37:31
rssFeed for this Thread

Contact us at files@mathworks.com