Test harness not visible
18 views (last 30 days)
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?
Young Ma on 2 Aug 2017
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:
>> 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.