Transition condition of Stateflow as Parameter
Afficher commentaires plus anciens
Hello Everyone. Is it possible to set a transition condition of Stateflow as something like "mask-parameter" or variables? Many thanks!
2 commentaires
Prasanth Sunkara
le 28 Juil 2017
Can you please provide more information/code?
Yuntao Zhang
le 31 Juil 2017
Réponses (1)
Sebastian Castro
le 31 Juil 2017
Modifié(e) : Sebastian Castro
le 31 Juil 2017
0 votes
Yes, this approach does work.
If you create data in Stateflow, you can set its "Scope" to "Parameter".
When you update the model, Simulink will search for the variable in the following order:
- Mask workspace
- Model workspace
- Base workspace
... so, if you create a mask around the Stateflow chart and define a parameter b in the mask, you're all set.
- Sebastian
Catégories
En savoir plus sur Stateflow dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!