The SIMULINK Model does not generate the Test Cases

Hi,
I have a fairly complex SIMULINK Model and trying to have its design verified using the SLDV. I do not see the SLDV generating any test cases. I'm using a script file to invoke these functions to do the job.
Calling tree as below.
generate_tests
| sldvrun
| sldvRunAnalysis
The sldvRunAnalysis always returns a status of -1 which corresponds to Not_Run and which inturn affects the test cases creation in a mat file through the generate_tests function.
The sldvRunAnalysis is MATLAB's own protected function, which does not allow me to step in and debug as to why the status is returned as -1.
I have a .mat file which has attributes printed along with the TestCases. Everytime, after the run there are no TestCases in my mat file.
Also - _replacement.slx model is created due to compatability issues with the SLDV.
Any directions or leads would be very much appreciated !
--SV

3 Comments

Hi Srinidhi,
Did you try checking for compatibility before running the analysis? Doing this should show if there are any incompatibilities.
Also, what type of blocks does your model contain? Is it mostly Math library blocks?
This will likely require contacting MathWorks Technical Support.
Thanks Pat !
The model is a large complex one, controlling the dynamics of an automotive wheel. It has multiple levels and has blocks ranging from multi level switches, Logic Ops, Mux , flip-flops. So the model completes the, compatibility ,builds and generates a replacement model and tries to run the SLDV on it.
I also went ahead and tried the below options
(i) Test Suite Optimization setting , maximum delay time, Coverage aspect
(ii) Also tred running the Test Advisor prior to running the Test Case generation
Also tried to have the max delay setting time of 86400 seconds, did not succeed since the SLDV just keeps running forever without any tests.
--SV
Hi SV,
Apologies for the delayed response. I recommend reaching out to MathWorks Support for this. It may require some detailed digging. Are you able to share your model, or some representation of it?
Thanks.
  • Pat

Sign in to comment.

Answers (0)

Categories

Products

Release

R2017b

Tags

Asked:

sri
on 23 Oct 2019

Commented:

on 25 Nov 2019

Community Treasure Hunt

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

Start Hunting!