stateflow variant states possible?

7 次查看(过去 30 天)
Is is possible to add variants of a state inside a stateflow diagram, similar to variant subsystems in simulink?

采纳的回答

Srinath Avadhanula
Srinath Avadhanula 2020-11-5
Stateflow has built-in support for variant transitions starting in R2020a. Please refer to the following page:
You should be able to use this to model variant states.

更多回答(2 个)

Jonas
Jonas 2019-7-17
编辑:Jonas 2019-7-17
You may want to have a look at Simulink Functions inside Stateflow: https://nl.mathworks.com/help/stateflow/ug/simulink-functions-in-stateflow.html
Try to put a variant subsystem inside the Simulink Function. I have not tried it myself, but this would be the first thing to try.
  1 个评论
Michael Felger
Michael Felger 2019-7-17
Thanks, but unfortunately this is not possible for me.
I need to generade HDL code for the stateflow diagram, and simulink functions inside stateflow are not supported for HDL code generation.

请先登录,再进行评论。


Jordan McBain
Jordan McBain 2020-8-20
I think this should be a feature precisely as the questioner suggests. I wonder if you might use a simulink variant on one of the state flow transitions to achieve the change in behaviour (probably not as nice as using the variant idea suggested)

类别

Help CenterFile Exchange 中查找有关 Complex Logic 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by