Stateflow: Output appears after some time/steps for a function call
1 回表示 (過去 30 日間)
古いコメントを表示
Varunjith Vijayan
2018 年 5 月 25 日
回答済み: Varunjith Vijayan
2018 年 6 月 5 日
I am using stateflow diagrams for a model and it is having multiple statecharts. The statecharts are having graphical functions and it is available globally. In one of the graphical functions, an output variable is changing. When I call this function, the output is changing after few seconds of time of execution. Example of function:
function StateSampleFunc(InputVar)
OutVariable = InputVar; %Weitten on transition
The InputVar is visible on the OutVariable after few seconds of calling the function StateSampleFunc.Is this expected for a bigger models having multiple statecharts and outputs?
2 件のコメント
TAB
2018 年 5 月 25 日
Seems like implementation/logic issue. Not Stateflow problem. Where are you checking OutVariable ? On Scope ?
Can you share your model or part of model ?
採用された回答
その他の回答 (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!