Detect change block is not working as expected
6 ビュー (過去 30 日間)
古いコメントを表示
Hi, we are facing issue with Detect change block in simulink. some times it is not working as expected,means it detects changes even though value to it's input is not getting changed. i am wondering how it should detect change. if i used rounding block between value and detect change block then it will work as expected. i think detect change block detect at some decimal point difference but value is constant as per data logging. Please suggest me any solutions/settings to be checked against this issue. Thanks in advance!
0 件のコメント
回答 (1 件)
ES
2017 年 9 月 7 日
Normally when detecting changes in a float signal, we check if the absolute difference to previous value is greater than some constant (eps usually). You can fix this constant according to your requirement.
Plus, why it does not show on data logging might be because the format is set to short. set format to long and revisit the logged data.
format long
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!