Maximum recursion limit of 500 reached. in Simulink

8 Ansichten (letzte 30 Tage)
VraelEnrique
VraelEnrique am 23 Jan. 2020
Beantwortet: Muskan am 30 Okt. 2024 um 7:16
Hello. I have this problem when I open my project. I am building an electrical grid with Simulink/Simscape, so I don´t have any code that I could optimate, I have already read post to similar problems but I don´t know how could I fix this error. The network seems to be good connected. Maybe anybody has experience with this problem and can help me. Thank you.

Antworten (1)

Muskan
Muskan am 30 Okt. 2024 um 7:16
Hi,
As per my understanding of the query, this error occurs because you have the name of the file in your MATLAB script. By pressing the “run” button or typing the file’s name in the MATLAB Command Window and hitting ENTER, you are already executing the file. However, by including the name of the file again within your script's code, you are essentially running that same command to execute your file again over and over, creating a recursive loop, which produces the error.
To resolve this issue, you can simply comment out or delete the line that contains the file’s name.
I hope this helps!

Kategorien

Mehr zu Simscape Electrical finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by