Detect Change in the Value of data with x seconds in Stateflow
조회 수: 4 (최근 30일)
이전 댓글 표시
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"
댓글 수: 0
답변 (1개)
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 -
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!