I created this state machine chart in Simulink using the StateFlow :
There are two states (S1,S2), one of which (S1) has 3 nested parallel FSM , each one has 4 states (SS1, SS2, SS2, SS4) , I put a default state in all of the 3 FSMs (SS1), and in the main two states (default S2).
To test the main FSM (S1,S2) , I used signal builder for all my inputs/events. One of the inputs is a square wave which is a clock event for my main FSM (1 Hz) and the duration of the simulation is 50 sec.
The problem i have is that i can see in the signal builder that i have a square wave, however when i put scope to that clock i see one square wave (extending from 0 to 49.5 second then drops to 0) .
Where is my clock ? what isn't it feeding my FSM properly ?
Here is the FSM:
The orthogonal sub-states are :
in details:
in in between S1 and S2
One of the signal builder , which has the Clock signal is:
The other has the following signals: