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

2 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Abhas
Abhas il 29 Lug 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

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by