stateflow variant states possible?

8 Ansichten (letzte 30 Tage)
Michael Felger
Michael Felger am 17 Jul. 2019
Is is possible to add variants of a state inside a stateflow diagram, similar to variant subsystems in simulink?

Akzeptierte Antwort

Srinath Avadhanula
Srinath Avadhanula am 5 Nov. 2020
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.

Weitere Antworten (2)

Jonas
Jonas am 17 Jul. 2019
Bearbeitet: Jonas am 17 Jul. 2019
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 Kommentar
Michael Felger
Michael Felger am 17 Jul. 2019
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.

Melden Sie sich an, um zu kommentieren.


Jordan McBain
Jordan McBain am 20 Aug. 2020
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)

Kategorien

Mehr zu Decision Logic finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by