can simulink code generated unique codes can be kept same irrespective of simulink version ?

3 次查看(过去 30 天)
whenever matlab generates a code it assigns unique code for each subsystem and its used for classification of parameters from that particular subsytem , here the problem is everytime the user uses different version of matlab ,in the subsystem this code numbers gets changed and there is lot of manual work involved in mapping these parameters used in hand written codes for interfaces , hence I wanted to check if there is any configuration settings available in the simulink to keep the unique subsystem code representations same irrespective of code gen in any version of matlab/simulink ??

回答(1 个)

Amith
Amith 2024-7-22,2:04
Hi Megha,
You can use Embedded Coder to integrate generated C code from previous releases with generated code from the current release when the source models are single-rate and the generated C code is from:
  • Top-model or subsystem build processes that use the nonreusable function code interface.
  • Single or multiple instance model reference build processes that suppress error status monitoring (SuppressErrorStatus is on).
If you can reuse existing code without modification, you can reduce the cost of reverification.
You can learn more about Cross-Release Code Integration from this MathWorks resource:
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Code Interface Configuration and Integration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by