I try to run the Simulink Design Verifier on my Simulink model and I get an error that there is some recursive function in the Stateflow chart. I would like to know why is there a recursion in a Stateflow chart in my Simulink model.
The following is the output of the Simulink Design Verifier Compatibility Check (note that the names of the model and the chart events may vary):
Checking compatibility of model 'FireControlProcess_v2'
Compiling model… done
Checking compatibility…
Errors occurred during translation:
Please refer to the diagnostics window for more information.
'MyModel' is incompatible with Simulink Design Verifier.
Translation failed: Error reported by S-function 'sf_sfun' in 'MyModel/ SFunction ':
Errors occurred during codegen
Call cycle detected among the following functions: Chart 'MyModel/FCP_Logic_04' (#18), Local Event 'disarmed' (#377), State 'warning' (#160), Local Event 'lockout' (#385), Local Event 'reset' (#378), Local Event 'NotLnchng' (#383), and Local Event 'Reset_TOF_Timer_Flag' (#384).
Recursion is prohibited in Simulink Design Verifier.
Best Answer