Test Manager minimum duration condition
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,
I would like to create in the Test Manager the following assessment:
At any point of time, if myCondition == true becomes true then, with no delay, myCondition == true must stay true for at least 1s.
This sounds like a "standard" kind of assessment to check minimal timing and my conditions sounds correct to me. Unfortunately, when I define that assessment, I get the following error:
Error evaluating assessment 'Assessment1'.
Caused by: Error during assessment evaluation. Error during evaluation of expression 'Assessment1: At any point in time, if isTrue becomes true then, with no delay, isTrue must stay true for at least 2.5e-06 seconds'. Error during evaluation of expression 'isTrue must stay true for at least 2.5e-06 seconds'.
Unsupported signal: time vector must be strictly increasing.
I'm running my simulation in fixed-step and funny enough, this error occurs only and only if the time I set for "must stay true for at least" is exactly the time the condition is true. If I deduced 1 ns, then it works.
Has anyone a idea how I could avoid that issue or whether it is a bug in Simulink Test?
Thank you for your answer, Nicolas
댓글 수: 2
Giovanni Miraglia
2021년 6월 18일
This usually happens when a signal has more than one value for the same point in time. This phenomenon might be caused by multiple things. For instance, it can be caused by rounding errors. Without having more information about your setup and model it's difficult to provide a comprehensive answer. I would suggest providing more information about your setup including which release you are currently using.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Outputs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!