Detect Change in the Value of data with x seconds in Stateflow

4 ビュー (過去 30 日間)
Nalini Nadupalli
Nalini Nadupalli 2021 年 1 月 21 日
回答済み: Jayant Gangwar 2022 年 10 月 4 日
I need to detect change in the value of a data within 5 seconds in Stateflow.
The link below provides temporal logic associated for states in the Stateflow rather than data in the stateflow chart.
Is there any way I can detect changes in the data after a given time?
For e.g. Input signal "Choice" changes from "1" to "2" within "5 seconds"

回答 (1 件)

Jayant Gangwar
Jayant Gangwar 2022 年 10 月 4 日
Hi Nalini,
You can use change detection operators like "hasChanged", "hasChangedTo", "hasChangedFrom", to determine if the value of a variable changes.
Refer to the documentation link below for detailed information regarding the same -

カテゴリ

Help Center および File ExchangeStateflow についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by