How to solve error of creating harness model
3 views (last 30 days)
Show older comments
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 Comments
Nagaraj Chincholli
on 7 Mar 2020
Hi,
If you can create sample model and regenerate the issue you are facing I can help you.
Answers (1)
Jesús Zambrano
on 26 Mar 2020
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 Comments
See Also
Categories
Find more on Inputs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!