During update diagram I get Recursion found while evaluating property values

3 ビュー (過去 30 日間)
Rick Dodd
Rick Dodd 2023 年 4 月 25 日
回答済み: Muskan 2023 年 5 月 17 日
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?

回答 (1 件)

Muskan
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

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by