How to solve error of creating harness model

조회 수: 2 (최근 30일)
Kenji Matsuki
Kenji Matsuki 2019년 7월 2일
댓글: Jesús Zambrano 2020년 3월 30일
I'd like to unit test on the model and use test profile which is edited by excel.
I tried to create harness model by matlab command 'modelRefHarness = slvnvmakeharness(Testmodel)'.
But, the error occured for slvnvmakeharness(line 82).
What could I solve this problem and do unit test for my model?
Please, tell me some advice.
  댓글 수: 2
Nagaraj Chincholli
Nagaraj Chincholli 2020년 3월 7일
Hi,
If you can create sample model and regenerate the issue you are facing I can help you.
Kenji Matsuki
Kenji Matsuki 2020년 3월 29일
Hi Chincholli-San,
I'm sorry for late to reply your comment.
And, thank you your kindness.
I solved this problem by using SLDV on Matlab 2015aSP1 last summer.
Best, regards

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

답변 (1개)

Jesús Zambrano
Jesús Zambrano 2020년 3월 26일
Hi Kenji,
The basic steps to create and load a harness programmatical are as follows:
model = 'sltestCruiseChart';
load_system(model)
sltest.harness.create(model,'Name','Harness1');
which creates a harness with default properties.
Please check the command sltest.harness.create to discover more funtionalities, like include options (for example, different types of sources and sinks).
Hope this can help to solve your question.
  댓글 수: 2
Kenji Matsuki
Kenji Matsuki 2020년 3월 29일
Hi Zambrano-san,
Thank you so much your answer.
I tried your suggestion and could export harness model.
I'm very helpfull.
When I posted this question, I had not got 'Simulink Test'.
But, I have it now, and I could make harness model without command.
Best, regards
Jesús Zambrano
Jesús Zambrano 2020년 3월 30일
Hi Matsuki-san,
Perfect. Good luck!

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

카테고리

Help CenterFile Exchange에서 Inputs에 대해 자세히 알아보기

태그

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by