Create custom storage class for Simulink Parameter

7 次查看(过去 30 天)
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 个评论
Gianmarco Odorizzi
Gianmarco Odorizzi 2019-6-19
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Code Interface Definitions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by