Why Real-time model data structure in MATLAB2018b version?

2 Ansichten (letzte 30 Tage)
I have compared the c code generated from MATLAB 2010b as well as MATLAB 2018b (in both the versions all the simulink parameter were same), and I found that in the latest version real time model data stucture is generted. Why it is not there in MATLAB 2010b, but its's there in MATLAB 2018b?

Akzeptierte Antwort

Andrey Kiselnikov
Andrey Kiselnikov am 27 Aug. 2019
Because both C/C++ coder and HDL coder continuously developing to perform better characteristics and looking of generated code.
  2 Kommentare
Asang singh
Asang singh am 27 Aug. 2019
Thanks for your response Andrey.
I still have one doubt, because of this structure, my step and initialize function's arguments got changed (again compared to 2010b verison), i.e. RT_MODEL is one of the argument which got generated, so is it ok to proceed with this or will it have any effect w.r.t memory or run time.
Andrey Kiselnikov
Andrey Kiselnikov am 27 Aug. 2019
The MathWorks provides special training where they explain the code generation strategy and how to build a good model for generating the code.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Code Generation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by