SLDV check subsystem compatibility , call cycles detected

Hi,
I am new to simulink and I am trying to check compatibility of a model (file attached) but I get error "call cycles detected"
I dont know how to resolve this or what exactly is the issue kindly provide any information to help me reolve this
Thank you

7 Comments

sorry about that, I tried attaching it but matlab website throws error or silently drop the file attachment, not sure why
I do not get any message about "call cycles detected"
I get a number of messages along the lines of
Warning: Undirected local event broadcast detected in object 'Emergency_mode', which may cause unintended recursive behavior. Use a directed event broadcast if possible. See this documentation for more information.
I also get messages along the lines of
Warning: The connected parameter 'Constant1:Value' was not found for 'Push Button1' or was changed from a literal value to an expression.
@Walter Roberson Thank you so much for checking the file and model, you can ignore those warnings, first one is regarding the use of an event broadcast and the second on is because I commented out the part where there is some push buttons for input.
To recreate the issue I am taking about
  1. right click on the "Chart" / stateflow
  2. click Design verifier > "check subsystem compatibility"
  3. or Design verifier > "Generate tests for subsystem"
this results in an incompatible system error , with the error logs pointing to "call cycles detected" for multiple parts of the design
Does that use Simulink Designer Verifier product? I do not have that product. Without it, I do not see any kind of Design Verifier option.
@Walter Roberson Thank you for cheking .
Yes it might need to be added , it is part of design , verification and testing models

Sign in to comment.

 Accepted Answer

Hi Amrith,
I was able to reproduce the error on my end. As the error suggests, call cycles are not supported for Simulink Design Verifier.
A potential reason for that is that the chart uses undirected event broadcasts using the function “send”. The documentation recommends preferring directed event broadcasts over undirected event broadcasts to prevent unwanted recursion:
You may read more about the error and ways to avoid it in this MATLAB Answers post:
For more details on how to detect and fix cyclic behaviour, this documentation might help:
I hope it helps.

1 Comment

Thank you so much.
The error messages in simulink and matlab is often not very useful I hope they improve this

Sign in to comment.

More Answers (0)

Categories

Find more on Verification, Validation, and Test in Help Center and File Exchange

Products

Tags

Asked:

on 17 Nov 2024

Commented:

on 22 Nov 2024

Community Treasure Hunt

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

Start Hunting!