- https://www.mathworks.com/help/sltest/ref/testassessment.html
- https://www.youtube.com/watch?v=FhZqBCJRkUs&t=808s
Tolerance inside the Test assessment block
조회 수: 2 (최근 30일)
이전 댓글 표시
How to intoduce the tolerance inside the test assessment block ?
for example, i want to check/compare the OUT_controller plus or minus 0.1
verify(OUT_controller >= -1 && OUT_controller <=1)
Does simulink test has an option to do this ?
댓글 수: 0
채택된 답변
ag
2023년 11월 2일
Hi Suresh,
I understand that you need to introduce tolerance inside the test assessment block.
To do so, you can write your required condition in the transition block of the “Test assessment” block parameters dialogue box.
Below is an example to demonstrate the same:
OUT_controller >= -1.1 && OUT_controller <=1.1
In the above code I’ve modified the condition based on the required tolerance (± 0.1).
Please refer to the below resources for more details:
Hope this helps!
Best Regards,
Aryan Gupta
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Inputs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!