Transition condition of Stateflow as Parameter
조회 수: 1 (최근 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!