Clear Filters
Clear Filters

TLC Code Generation "NumTotalBlocks" removed in R2020a?

1 view (last 30 days)
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

Accepted Answer

Atharva
Atharva on 13 Sep 2023
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!

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!