How do I set the sample time of the harness model when I am generating test cases for a function call subsystem in Simulink Design Verifier?

7 views (last 30 days)
When I generate test cases exclusively for a function call subsystem I would like to be able to set the step size of the resulting harness model to a value other than the default step size of StopTime/50.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 3 Sep 2009
Function call subsystems cannot inherit the model sample time since they do not get called at each simulation time step. For the purpose of test case generation, Simulink Design Verifier currently uses the default step size of StopTime/50 for the harness model.
There is no direct way to control these step sizes / sample time. As a workaround the sample time of the harness model has to be changed manually. Another workaround is to use the function SLDVEXTRACT to copy the function call subsystem to a new Simulink model and then change the sample time of the model and generate test cases for the model.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!