Create custom storage class for Simulink Parameter

6 views (last 30 days)
Good morning,
I created a Storage Class by adding a new entry in the Embedded Coder Dictionary, making sure the Data Initiliazation property is set to None, so that the Allowed Usage property is set to Parameters. Then, I created a new Simulink Parameter in the Data Dictionary, under the Design Data section.
However, there is no way to select a storage class other than the built in ones (ExportedGlobal, Const, Define etc.).
Is there a way to assign a Custom Storage Class to a Simulink Parameter?
Thank you in advance.
  2 Comments
Gianmarco Odorizzi
Gianmarco Odorizzi on 19 Jun 2019
Good morning, Adel.
I eventually managed to create and assing a CSC to a Simulink.Parameter by carefully following these instructions:https://it.mathworks.com/help/ecoder/ug/apply-custom-storage-classes.html
You basically need to create a Simulink package, design your CSC with cscdesigner and then apply it to your myPackage.Signal or myPackage.Parameter object.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!