Algebraic loops are not supported in generated code. Use the 'ashow' command in the Simulink Debugger to see the algebraic loops
Afficher commentaires plus anciens

Have a nice day. I'm building my system like in the image. but I get the error. what is the solution. I would be glad if you help. Yours truly
1 commentaire
帅哥 谢
le 12 Sep 2021
use function sldebug('your mdl_name')
ashow
select a block
ashow gcb
Réponses (1)
Pramil
le 26 Juil 2024
0 votes
Hi Emre,
As the error suggests, your model contains an algebraic loop and before generating code for the same you need to eliminate that. You can refer to the following documentation to see how that can be done:
As for the ‘ashow’ command, it helps to identify and highlight algebraic loops in simulation debugging session. Here is a link you can go through to know more about the command:
Hope it helps.
Catégories
En savoir plus sur Simulink dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!