During update diagram I get Recursion found while evaluating property values
3 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Muskan
2023-5-17
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!