Eliminate algebraic loop without using memory block
6 ビュー (過去 30 日間)
古いコメントを表示
I was wondering if there is a way to eliminate the algebraic loop in Simulink model without using memory or delay blocks. These blocks tend to add slight overheads in the generated code associated with the creation and use of "state" variables.
0 件のコメント
回答 (2 件)
Robert U
2019 年 8 月 14 日
Hi Boru Wang,
there is an article about "Remove Algebraic Loops" in the Matlab documentation: https://de.mathworks.com/help/simulink/ug/remove-algebraic-loops.html
Without knowing the actual problem our help is more generic.
Kind regards,
Robert
3 件のコメント
Robert U
2019 年 8 月 15 日
Is there a possibility that the algebraic loop is caused by the C-code you posted? How do you initialize your static variable "learnDone"?
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!