How can I use parameter overrides while Fast Restart is enabled in Simulink Test Manager?

9 views (last 30 days)
I am running test cases from Simulink Test Manager with a test harness that has Fast Restart enabled in MATLAB R2021b. I have defined some parameter overrides through the Test Manager interface, as follows:
I found that running the test case once does not cause any issues. However, running the test case again gives me errors where parameter overrides are undefined, even though the model just ran successfully once.
Could I ask why this is occurring? 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 14 Oct 2022
These errors occur because Fast Restart keeps the test harness in a compiled state. This implies that setup work including the use of parameter overrides cannot be completed prior to running the model. 
If you would like to run test cases in Fast Restart, it is suggested to use Test Iterations. Test Iterations can be auto-generated after adding the Parameter Overrides set as described in the question.
Go to "Iterations" Section in the Test Manager, and select the "Auto Generate" button. Select "Parameter Set" as the criteria. 
To run test cases with Fast Restart, select "Run Test Iterations in Fast Restart" at the bottom of the "Iterations" section.

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!