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?

6 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Generate Tests 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by