Custom storage class for Argument Simulink parameters identifiable by TLC script

Hi,
My objective is to define a custom storage class specifically intended for "Argument" Simulink parameters. The primary requirement is to programmatically identify which model parameters are using this custom storage class from within a TLC script executed during code generation.
I initially attempted to create the custom storage class using an Embedded Coder Dictionary. However, at code generation time, I have been unable to definitively determine which model parameters are using my custom storage class. The only observable indicator appears to be the field ModelParameters.Parameter[i].IsSpecifiedAsNewStorageClass, which is set to 1. I would appreciate confirmation on whether this is the intended mechanism or if additional fields should be accessible.
I subsequently explored the Custom Storage Class Designer, which showed promise. Upon inspection, the custom storage class appeared clearly within the TLC script context under the CustomStorageClasses record. However, as far as I know, it is not possible to define a custom storage class for "Argument" Simulink parameters this way.
Are there any aspects of either methodology that I may have overlooked or configured incorrectly?
Is there an alternative approach or recommended candidate method that would better satisfy my requirements?
Best regards

Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products

Release

R2024b

Asked:

on 11 Mar 2026 at 15:08

Edited:

on 11 Mar 2026 at 15:10

Community Treasure Hunt

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

Start Hunting!