Scope of storage classes created in the Embedded Coder Dictionary

It’s mentioned that “storage classes created in the Embedded Coder Dictionary can be applied to parameters selectable from code mappings.”
However, is it correct to understand that Simulink.Parameter or Simulink.Signal defined in a Simulink Data Dictionary or base workspace
are not considered such “selectable parameters,” and thus cannot use the storage classes defined in the Embedded Coder Dictionary?
My understanding is that the only way to apply custom storage classes to these objects
is to create them using the Custom Storage Class Designer (e.g., myPackage.Parameter).

 Accepted Answer

Parameters that can be manipulated via code mappings are typically signals, parameters, and states placed within the model itself,
and these can utilize storage classes defined in the Embedded Coder Dictionary.
However, Simulink.Parameter or Simulink.Signal objects defined in the Simulink Data Dictionary or base workspace
are treated as external to the model, and thus cannot use the Embedded Coder Dictionary’s storage classes.
To apply a custom storage class to such external objects,
please use the CSC Designer to create custom classes (e.g., myPackage.Parameter).

More Answers (0)

Products

Release

R2021b

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!