I'm looking for a way to use event-based temporal logic in Simulink Stateflow.
Example: [State_1] --> [after(3,sec) && e] --> [State_2]
Scenario:
- 0 sec: State_1 is active
- 2 sec: e is true
- 5 sec: State_2 is active (only after 3s of e)
Expection: [State_1] --> (after 3s of e) --> [State_2]
Result: [State_1] --> (after 3s of State_1) --> [State_2]
Is there a solution for that? I did not found one in official MathWorks documentation (MathWorks - Control Chart Execution Using Temporal Logic)
Thank you
This is how I did it:
combined with:
Entry
andleft
action of state 1 may need to be changed depending on cases.