How to solve error of creating harness model
조회 수: 2 (최근 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
2020년 3월 7일
Hi,
If you can create sample model and regenerate the issue you are facing I can help you.
답변 (1개)
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Inputs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!