Set design verifiers parameters programmatically

조회 수: 2 (최근 30일)
Aditi  Kanawade
Aditi Kanawade 2021년 12월 29일
답변: Devendra Bhave 2022년 2월 9일
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.

답변 (2개)

Pat Canny
Pat Canny 2022년 1월 4일
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
Aditi  Kanawade
Aditi Kanawade 2022년 1월 5일
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.

댓글을 달려면 로그인하십시오.


Devendra Bhave
Devendra Bhave 2022년 2월 9일
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.

카테고리

Help CenterFile Exchange에서 Specify and Verify Design Requirements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by