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

4 vues (au cours des 30 derniers jours)
Richard Hopple
Richard Hopple le 2 Juil 2024
Réponse apportée : Abhas le 29 Juil 2024
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?

Réponses (1)

Abhas
Abhas le 29 Juil 2024
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

Catégories

En savoir plus sur Results, Reporting, and Test File Management dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by