Counting when signal is not in a range
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
I've builded this system
I want to check when signal is in the setted range of values al least for 1 second and if is not in the range, but for few seconds (0.5 seconds), it has to consider it in the range the same. If not-in-range-count is above 0.5 seconds it has not to consider it. Instead in my configuration (figure) when output of lowest integrator is not resetted and it is rising below 0.5 it returns TRUE. How can I check that final not-in-range-count is shorter than 0.5 seconds?
댓글 수: 3
Kaustubha Govind
2011년 6월 16일
This question seems like a detailed version of http://www.mathworks.com/matlabcentral/answers/9637-not-sensible-to-short-time-false
Please consider deleting the old question.
Kaustubha Govind
2011년 6월 16일
What is the sample time of your Compare to Constant blocks?
Fangjun Jiang
2011년 6월 16일
The question is also very close to a previous one asked by you. Read it and solution is right there.
http://www.mathworks.com/matlabcentral/answers/8189-convert-range-of-signal-values-to-constant-by-simulink
답변 (0개)
이 질문은 마감되었습니다.
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!