Stateflow webview - monitoring enum value
Show older comments
I'd like the HTML webview to include the monitoring enum value (integer) in the property inspector each of the leaf states. Is this possible?
Answers (1)
Arushi
on 18 Aug 2025
0 votes
Hi Brandon,
Currently, the HTML Web View does not directly display the enum integer value of a Stateflow leaf state in the Property Inspector. By default, it only shows model object properties such as Name, Type, and Description.
As a workaround, you could try the following:
- Add Stateflow annotations near the state to document the enum mapping. These annotations will appear in the Web View and make it easy to visually communicate enum values.
- Generate a custom HTML report using Simulink Report Generator (slreportgen) that lists all states and their corresponding enum values in a table. You can also link this report from the Web View for easy access.
For more details, please refer to the following MathWorks documentation:
- https://www.mathworks.com/help/releases/R2024b/stateflow/api/stateflow.annotation.html
- https://www.mathworks.com/help/releases/R2024b/rptgenext/ug/report-generation-for-simulink-and-stateflow-elements.html
- https://www.mathworks.com/help/releases/R2024b/rptgenext/getting-started-with-simulink-report-generator.html
Hope this helps!
Categories
Find more on Create Model Web Views in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!