Test harness not visible
49 次查看(过去 30 天)
显示 更早的评论
I am using R2015a. i want to use Simulink Test feature, when i right click on a subsystem there is no option for test harness. I have checked for the toolbox using 'ver' command, Simulink Test is displayed.
Am I missing anything? Are there any prerequisites or steps to be followed before using test harness?
1 个评论
Mahesh
2017-4-13
Hi Preethi,
Sorry for the delay in responding. Are you trying to create a harness for a special subsystem or just a normal virtual subsystem? Can you try the command line option "sltest.harness.create(< path-to-subsystem >, < name-of-harness >)"?
回答(1 个)
Young Ma
2017-8-2
Hi Preethi,
I understand from your description that you have the product installed for Simulink Test, but when you right clicked on a subsystem, there is no context menu option for Test Harness.
There are certain considerations before you use Simulink Test Harness. Some of the cases which may related to your situation:
a. Models in MDL format do not support test harness creation.
b. Test harnesses are not supported for blocks underneath a Stateflow® object.
c. A test harness with a Signal Builder block source does not support some type of signals.
d. Some special subsystem might not support test harness creation.
There is a documentation page for details: https://www.mathworks.com/help/sltest/ug/simulation-harness-limitations.html
To figure out if this is the case for you, you can use one of our shipped demo model ‘f14’ to help you get started. In your MATLAB command window, type the following:
>> f14
>> sltest.harness.create('f14','Name','sample_harness','Source', 'Signal Builder','Sink','Scope')
The related documentation page is as follows: https://www.mathworks.com/help/sltest/ref/sltest.harness.create.html?
If you can successfully create harness and no error shows up in the command line window, I would suggest you to reach to MathWorks technical support.
1 个评论
Nalini Nadupalli
2020-2-25
Hello,
I have simulink test toolbox installed. However, I don't think I have the license, could you confirm this for me please?
When i used the above command "f14 and sltest.harness.create..." I get the following error. Does this error mean that I don't have the Simulink Test toolbox license?
Unable to checkout a Simulink Test license needed to use this feature.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Inputs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!