Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

Incherence when outputing multiple f_call events using a Stateflow chart with multiple input f_call event

1 view (last 30 days)
Hi everyone,
I'm facing a stateflow behavior that I can't explain. I want to use a statefelow to generate various f_call events using the same number of input f_call events (this to be use for interfacing with a Model Reference Block).
I notice that the first f_call input event that happen does not trigger a the send(new_event) in the state that is supposed. This causes the event not to be propagated by my stateflow.
In the example attached, the first display has missed the first event and shows 10 instead of 11.
Thank you for your help understanding this.
The model can be found in the zip file.
I'm running Matlab r2013b on Windows 7.

Answers (1)

Navdeep Singh
Navdeep Singh on 8 Aug 2017
The entry action of the states are all executed when the first event triggers the chart to wake up, thus missing the execution of first state. Please see the documentation here for more details.
For this kind of behavior, please check the chart property 'Execute Chart at Initialization'

This question is closed.

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!