Unit testing Stateflow charts
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I have a set of Stateflow Atomic Subcharts that we have developed. I would like to develop automated unit tests for these, but I cannot find any examples of how to implement these tests.
Can anyone point me to any examples of testing Stateflow charts?
Thanks
0 commentaires
Réponses (1)
Julia Antoniou
le 25 Oct 2017
Hi Garret,
There is a tutorial in our documentation that explains how to generate reusable code from an atomic stateflow chart. You can then use this code for unit testing. See the following link for the tutorial: https://www.mathworks.com/help/stateflow/ug/tutorial-generating-reusable-code-for-unit-testing.html
4 commentaires
Abhishek Ballaney
le 23 Jan 2018
Hi Julia,
In this case, how do we convert a state chart to MATLAB code (.m file)? Please guide.
Voir également
Catégories
En savoir plus sur Syntax for States and Transitions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!