Test harness not visible

49 views (last 30 days)
Preethi
Preethi on 10 Oct 2016
Commented: Nalini Nadupalli on 25 Feb 2020
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 Comment
Mahesh
Mahesh on 13 Apr 2017
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 >)"?

Sign in to comment.

Answers (1)

Young Ma
Young Ma on 2 Aug 2017
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.
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 Comment
Nalini Nadupalli
Nalini Nadupalli on 25 Feb 2020
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.

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!