複数信号が一定時間以上正であることがsubsystem実行のトリガーとしたい
2 views (last 30 days)
Show older comments
入力される複数信号の値と閾値とする値の差分を取り、一定時間以上正の場合subsystemブロックを実行させるシステムを作りたいのですが、使えそうなブロックが見当たらず困っています。やり方をご教示いただけないでしょうか?
0 Comments
Answers (1)
Toshinobu Shintai
on 19 Oct 2020
Stateflowの状態遷移で、一定時間後に遷移するコマンドを簡単に記述できます。
こちらを活用してみてはいかがでしょうか。
2 Comments
Toshinobu Shintai
on 23 Dec 2020
一番簡単なのは、Stateflow内でSimulink関数を使うことです。添付のモデルをご確認ください。
Stateflowにはいろいろな使い方がありますが、もし基本の使い方が分からないことがありましたら、無料の「Stateflow入門」を受講してみてはどうでしょうか。
See Also
Categories
Find more on プログラムによるモデル編集 in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!