TLC Code Generation "NumTotalBlocks" removed in R2020a?

1 visualización (últimos 30 días)
michael bronnmann
michael bronnmann el 13 de Mzo. de 2023
Respondida: Atharva el 13 de Sept. de 2023
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

Respuesta aceptada

Atharva
Atharva el 13 de Sept. de 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!

Más respuestas (0)

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by