I want to check this property with code in Simulink StateFlow. I found that there is no direct identifier. Is there any way to check this option? (Create output for monitoring
32 views (last 30 days)
Show older comments
I want to check this property with code in Simulink StateFlow. I found that there is no direct identifier. Is there any way to check this option?
(Create output for monitoring:)
0 Comments
Answers (1)
Divyajyoti Nayak
on 17 Dec 2024 at 3:17
Edited: Divyajyoti Nayak
about 2 hours ago
To programmatically check the option “Create output for monitoring” in the Stateflow chart’s properties, you can make use of the “OutputMonitoringMode” property of the “Stateflow.Chart” object.
chart.OutputMonitoringMode = ‘ChildActivity’;
To access your Stateflow chart object, the “find” function can be used.
chartArray = find(sfroot,"-isa","Stateflow.Chart");
Here’s some documentation to help you out:
“find” function: https://www.mathworks.com/help/stateflow/api/accessing-existing-stateflow-objects.html
“OutputMonitoringMode”:
See Also
Categories
Find more on Simulink Functions 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!