Azzera filtri
Azzera filtri

During update diagram I get Recursion found while evaluating property values

12 visualizzazioni (ultimi 30 giorni)
I have constructed a model with several s-functions and bus definitions. Update diagram fails with message:
"Recursion found while evaluating property values"
I could not find anything specific in Mathworks help or online describing what that means - what properties is it refering too? How do I debug this?

Risposte (1)

Muskan
Muskan il 17 Mag 2023
Hi Rick,
As per my understanding of the question, the error message "Recursion found while evaluating property values" in MATLAB means that MATLAB is trying to evaluate a property that depends on itself. This can happen if you have a property that is set to the name of another property. For example, if you have a property called "Name" that is set to the value "Name", then MATLAB will try to evaluate the property "Name" which depends on itself. This will cause an infinite loop and MATLAB will generate the error message "Recursion found while evaluating property values".
To fix this error, you need to make sure that no property depends on itself. You can do this by changing the value of the property so that it does not depend on itself. For example, you could change the property "Name" to the value "MyName". This will fix the error and MATLAB will be able to evaluate the property without an infinite loop.
If you are still getting this error, you can try to debug your code by using the MATLAB debugger. The debugger will allow you to step through your code line by line and see what is happening. This can help you to identify the source of the error and fix it.
Thanks

Categorie

Scopri di più su Event Functions in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by