How do I save a Simulink Test harness by command line/script?
1 次查看(过去 30 天)
显示 更早的评论
I'm trying to use a script to open and modify a few dozen test harnesses for my model. Excerpt:
sltest.harness.open(modelName, harnesses(n).name);
sltest.testsequence.addSymbol(blockName, signalName, ...
'Data', 'Output');
However, I can't find a command for saving the changes. If I use
sltest.harness.close(modelName, harnesses(n).name);
I get the following error:
Error using editHarnesses (line 32)
Unable to close the test harness 'xxx' since it has unsaved changes. Please save the harness and
try the close operation again.
The model stores its harnesses in external .slx files.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Results, Reporting, and Test File Management 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!