Test harness not visible

41 vues (au cours des 30 derniers jours)
Preethi
Preethi le 10 Oct 2016
Commenté : Nalini Nadupalli le 25 Fév 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 commentaire
Mahesh
Mahesh le 13 Avr 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 >)"?

Connectez-vous pour commenter.

Réponses (1)

Young Ma
Young Ma le 2 Août 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 commentaire
Nalini Nadupalli
Nalini Nadupalli le 25 Fév 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.

Connectez-vous pour commenter.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by