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!