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

14 次查看(过去 30 天)
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,9:58
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