Clear Filters
Clear Filters

Which is the tool license to execute command like sltest.harness.create? I have simulink test version 1.1 but still I am getting error like undefined variable sltest or class sltest.harness.create.

2 views (last 30 days)
Which is the tool license to execute command like sltest.harness.create? I have simulink test version 1.1 but still I am getting error like undefined variable sltest or class sltest.harness.create.

Answers (1)

Walter Roberson
Walter Roberson on 7 Jan 2020
Edited: Walter Roberson on 7 Jan 2020
sltest.harness.create needs R2015a or later, but it was not documented until R2015b. https://www.mathworks.com/help/releases/R2015b/sltest/ref/sltest.harness.create.html
Simulink Test version 1.1 appears to have been R2015b, so provided that you have the software installed and licensed you should be able to use it. (R2019b corresponds to Simulink Test release 3.1)
I do see an oddity in the version numbers documented; I see an indication that R2015bSP1 might have been version 1.0.1 instead of version 1.1.1 . Perhaps that is a mistake in the manual.
  1 Comment
Ashvini Bankar
Ashvini Bankar on 7 Jan 2020
Edited: Ashvini Bankar on 7 Jan 2020
basically you mean to say i will need Simulink Test with version 1.0.1 for using sltest.harness.create.
but the version I am using is already the higher version with R2015b matlab.
still the command throws error.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!