Set design verifiers parameters programmatically

2 visualizaciones (últimos 30 días)
Aditi  Kanawade
Aditi Kanawade el 29 de Dic. de 2021
Respondida: Devendra Bhave el 9 de Feb. de 2022
We have to set design verifiers 'MaxProcessTime' parameter programmatically so by using 'set_param' getting error like,
" block diagram does not have a parameter named 'MaxProcessTime'".
We have also tried sldvoptions but parameters are not reflecting in model.
Please provide effective solution for the same.

Respuestas (2)

Pat Canny
Pat Canny el 4 de En. de 2022
Hi Aditi,
You should not use set_param to define the MaxProcess Time. The model itself has no parameter for this.
You should use sldvoptions within a call to sldvrun, like so:
sldvdemo_cruise_control
optsModel = sldvoptions(bdroot);
optsCopy = optsModel.deepCopy;
optsCopy.MaxProcessTime = 120;
[ status, files ] = sldvrun(bdroot, optsCopy);
  1 comentario
Aditi  Kanawade
Aditi Kanawade el 5 de En. de 2022
Hello Pat,
For test generation and equivalence testing we are using "sltest.testmanager.createTestForComponent()", so we can not pass sldvoptions to this command for test generation.
Please suggest if there is any other way.

Iniciar sesión para comentar.


Devendra Bhave
Devendra Bhave el 9 de Feb. de 2022
Use parameter DVMaxProcessTime to set maximum analysis time. You must save the model before calling sltest.testmanager.createTestForComponent() API.
Refer to Design Verifier Pane documentation for further information.

Categorías

Más información sobre Specify and Verify Design Requirements en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by