Hello. I'm a newbie to stateflow in Simulink. Around 2-3 days ago, I figured out someting making me confused a little bit. I set the sample time in Model Configuration Paremeters to 0.01 sec, as shown in Fig 1. Fig 2. to Fig 3. shows the working process at each time step of the system written by myself, which consists of 3 parellel parent states. All of them are related to time counters (timer1, timer2 and timer3, which are local variables).
*Note that T is executing time, shown at the lowest of each picture.
Fig 1. Sample time setting in Configuration Parameters (0.01 sec)
Fig 2. T = 0.000 sec
Fig 3. T = 0.010 sec
Fig 4. T = 0.020 sec
Fig 5. T = 0.030 sec
Fig 6. T = 0.040 sec
According to the Fig 5., when T = 0.030 sec and all values of timer counters (timer1, timer2 and timer3) already reached to "3", there were only the buttom parent state, "Sys3_condition_action", that moved itself from "Off" state to "On" state, although all transitional conditions between "On" and "Off" were simultaneously satisfied by their corresponding timer counts (equal to 3). While the upper and middle parent states, Sys1_during and Sys2_cyclic_updating respectively, would move to "On" state in the next time step, at T = 0.040 sec (shown by Fig 6.).
At the first, I thought that all parents state should work in the same manner (all transitions should occur at T = 0.030 sec). But in fact, it's not what I understand. Could someone explain to me why they worked differently?
Best Regards.