How to count how many times a state is visited?
Show older comments
I want to count how many times a state is visited within Stateflow. I would like it to have a counter so if it gets visited 10 times it goes to a fault condition. It needs to be able to handle visiting in between states.
For example if it goes from state A -> B -> A the counter for A would be 2.
I've looked at count, before and temporalCount and none seem to act as desired.
Accepted Answer
More Answers (0)
Categories
Find more on Stateflow in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!