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

2 views (last 30 days)
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 ??

Answers (1)

Amith
Amith on 22 Jul 2024
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!

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!