How To Throw Out First Frame in Equivalence Test in Test Case Manager

조회 수: 2 (최근 30일)
Richard Hopple
Richard Hopple 2024년 7월 2일
답변: Abhas 2024년 7월 29일
Due to some convergence stuff, I need to remove the first frame in the equivalence test in Test Case Manager, to make the signals match correctly. Is there a way to do that?

답변 (1개)

Abhas
Abhas 2024년 7월 29일
Hi Richard,
You can achieve it by using the "captureEquivalenceCriteria".
Here's a step-by-step guide to achieve this accurately in MATLAB:
  • Open Test Case Manager: Launch MATLAB and open the Test Case Manager where your test case is defined.
  • Locate the Equivalence Test: Navigate to your specific equivalence test within the Test Case Manager.
  • Capture Equivalence Criteria: Use the "captureEquivalenceCriteria" function to capture the current criteria.
eqCriteria = captureEquivalenceCriteria(tc);
  • Modify Criteria: Adjust the criteria to exclude the first frame.
eqCriteria.FrameTolerance(1) = []; % Use your custom code to remove the first frame
  • Save the Changes: After making the necessary adjustments, ensure to save the changes to your test case.
  • Run the Test: Execute the test to verify that the first frame has been successfully excluded and the signals match correctly.
You may refer to the following documentation links to have a better understanding on captureEquivalenceCriteria and Test case Manager:
  1. Test Case Manager: https://www.mathworks.com/help/sltest/ug/test-case-manager.html
  2. captureEquivalenceCriteria: https://www.mathworks.com/help/sltest/ref/sltest.testmanager.testcase.captureequivalencecriteria.html

카테고리

Help CenterFile Exchange에서 Outputs에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by