Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
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.

回答(1 个)

Navdeep Singh
Navdeep Singh 2017-8-8
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'

此问题已关闭。

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by