Borrar filtros
Borrar filtros

Test harness not visible

22 visualizaciones (últimos 30 días)
Preethi
Preethi el 10 de Oct. de 2016
Comentada: Nalini Nadupalli el 25 de Feb. de 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 comentario
Mahesh
Mahesh el 13 de Abr. de 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 >)"?

Iniciar sesión para comentar.

Respuestas (1)

Young Ma
Young Ma el 2 de Ag. de 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 comentario
Nalini Nadupalli
Nalini Nadupalli el 25 de Feb. de 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.

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by