Transition condition of Stateflow as Parameter
2 次查看(过去 30 天)
显示 更早的评论
Hello Everyone. Is it possible to set a transition condition of Stateflow as something like "mask-parameter" or variables? Many thanks!
2 个评论
回答(1 个)
Sebastian Castro
2017-7-31
编辑:Sebastian Castro
2017-7-31
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!