simulink生成​的代码和target​link代码生成的区​别,可以互相替代吗?

simulink生成的代码和targetlink代码生成的区别,可以互相替代吗?
应该要做哪些更改呢?

2 commentaires

Walter Roberson
Walter Roberson le 13 Août 2026 à 6:11
Approximate translation:
What are the differences between the code generated by Simulink and the code generated by TargetLink? Can they be used interchangeably?
What changes should be made?
ding
ding le 13 Août 2026 à 6:42
Sure,Approximate translation.

Connectez-vous pour commenter.

Réponses (1)

nws
nws il y a environ 5 heures

0 votes

Yes, Simulink/Embedded Coder generated code can often replace TargetLink generated code, but the effort depends on how heavily the model relies on TargetLink-specific features.
Typical changes required when migrating from TargetLink to Simulink/Embedded Coder include:
  • Replacing TargetLink-specific blocks and subsystems with standard Simulink equivalents.
  • Migrating TargetLink Data Dictionary entries to Simulink Data Dictionary or Simulink data objects.
  • Updating storage class and code generation settings.
  • Reconfiguring calibration and measurement variables.
  • Reviewing fixed-point/scaling configurations and mapping them to Fixed-Point Designer settings.
  • Recreating AUTOSAR mappings if the application uses AUTOSAR.
  • Regenerating and validating the code to ensure functional equivalence.

1 commentaire

ding
ding il y a environ 4 heures
Thanks a lot ,the situation as you said is all right,

Connectez-vous pour commenter.

Catégories

Produits

Version

R2022b

Question posée :

le 13 Août 2026 à 2:16

Commenté :

il y a environ 13 heures

Community Treasure Hunt

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

Start Hunting!