TLC Code Generation "NumTotalBlocks" removed in R2020a?

1 次查看(过去 30 天)
Hi all,
as of MATLAB R2020a it seems that *.rtw-entry "NumTotalBlocks" is totally removed?
Some parts of the rtw-file content of e.g. R2019b looks like this
System {
Type "root"
Name "<Root>"
...
NumTotalBlocks X
...
}
In R2020a there is no "NumTotalBlocks" any more. Instead the entry "NumBlocks" exists over both releases. But whats the difference? Is it secure to simply replace NumTotalBlocks by NumBlocks in my own tlc files?
The ReleaseNotes page of MathWorks.com doesnt give any hint about that.
Thanks and br

采纳的回答

Atharva
Atharva 2023-9-13
Hey Michael,
I understand that you are facing an issue regarding whether "NumTotalBlocks" was removed in R2020a.
Yes, it was removed totally. Please replace the NumTotalBlocks entry with NumBlocks since as you found out.
Previously NumTotalBlocks contained also virtual ports which should not be handled by TLC processing and since TLC code should only process blocks up to NumBlocks the development team decided to remove this.
There are no further differences.
I hope this helps!

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by