Single-Instance vs Multi-Instance Embedded Coder?

What's the main difference between single-instance and multi-instance code generated from the embedded coder and how do they compare in terms of performances?

 Réponse acceptée

Mark McBroom
Mark McBroom le 11 Juin 2020

1 vote

For single instance the generated code will use global data to hold state and parameter information. For multiple instance, state and parameters are passed into the code via argument list. The calling code needs to allocate unique storage for each instance of the of the generated code.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Centre d'aide et File Exchange

Produits

Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by