I am having trouble simulating Stateflow models that use events. If I use tmeporal elements, alone, transitions occur as expected, but events seem to break things. In fact, I can't successfully simulate the example at:
I am trying to do something similar as in that example: have one system trigger another system, which then proceeds through its state machine. E.g., I want a "test" state machine that sends a "power on" event that starts another state machine, and a "power off" event to shut it down (or send it to an "off" state).
Secondly, when I do have the output and input events connected in Simulink, "after(n,sec)" and other temporal logic doesn't seem to work any more. E.g., the target Stateflow has an "Off" state, waits for "event", then transitions to "on", but subsequent transitions do not take place, whether empty (no logic), or with temporal logic. Once the receiving state has an input event symbol, it seems to functional differently, whether I use the event or not in the Stateflow.
I have tried 2019b and 2020a.