Use symbolic dimensions in Simulink model for code generation
I’m trying to create a MACRO to be used as dimension in the simulink model. The definition is as follows:
IDXLIM = Simulink.Parameter;
IDXLIM.Value = uint8(100.0);
IDXLIM.CoderInfo.StorageClass = ‘Custom’;
IDXLIM.CoderInfo.CustomStorageClass = ‘Define’;
IDXLIM.Description = ‘Macro to loop for Input vector Iteraton limit’;
IDXLIM.DataType = ‘uint8’;
IDXLIM.Min = [];
IDXLIM.Max = [];
IDXLIM.Unit = ‘Unitless’;
The following MACRO is used in the model and AllowSymbolicDimensions is enabled and as per the documentation, the code genration should be possible, but I see the following error:
Unsupported custom storage class ‘Default’ for symbolic dimension IDXLIM. Specify one of the following custom storage classes:
– Define or ImportedDefine with header file specified
– CompilerFlag
– SystemConstant (AUTOSAR.Parameter)
– User-defined custom storage class that defines data as a macro in a specified header file
To disable symbolic dimension propagation, search for ‘Allow symbolic dimension specification’ in the Configuration Parameters dialog box and clear the checkbox.
How to resolve this issue?I’m trying to create a MACRO to be used as dimension in the simulink model. The definition is as follows:
IDXLIM = Simulink.Parameter;
IDXLIM.Value = uint8(100.0);
IDXLIM.CoderInfo.StorageClass = ‘Custom’;
IDXLIM.CoderInfo.CustomStorageClass = ‘Define’;
IDXLIM.Description = ‘Macro to loop for Input vector Iteraton limit’;
IDXLIM.DataType = ‘uint8’;
IDXLIM.Min = [];
IDXLIM.Max = [];
IDXLIM.Unit = ‘Unitless’;
The following MACRO is used in the model and AllowSymbolicDimensions is enabled and as per the documentation, the code genration should be possible, but I see the following error:
Unsupported custom storage class ‘Default’ for symbolic dimension IDXLIM. Specify one of the following custom storage classes:
– Define or ImportedDefine with header file specified
– CompilerFlag
– SystemConstant (AUTOSAR.Parameter)
– User-defined custom storage class that defines data as a macro in a specified header file
To disable symbolic dimension propagation, search for ‘Allow symbolic dimension specification’ in the Configuration Parameters dialog box and clear the checkbox.
How to resolve this issue? I’m trying to create a MACRO to be used as dimension in the simulink model. The definition is as follows:
IDXLIM = Simulink.Parameter;
IDXLIM.Value = uint8(100.0);
IDXLIM.CoderInfo.StorageClass = ‘Custom’;
IDXLIM.CoderInfo.CustomStorageClass = ‘Define’;
IDXLIM.Description = ‘Macro to loop for Input vector Iteraton limit’;
IDXLIM.DataType = ‘uint8’;
IDXLIM.Min = [];
IDXLIM.Max = [];
IDXLIM.Unit = ‘Unitless’;
The following MACRO is used in the model and AllowSymbolicDimensions is enabled and as per the documentation, the code genration should be possible, but I see the following error:
Unsupported custom storage class ‘Default’ for symbolic dimension IDXLIM. Specify one of the following custom storage classes:
– Define or ImportedDefine with header file specified
– CompilerFlag
– SystemConstant (AUTOSAR.Parameter)
– User-defined custom storage class that defines data as a macro in a specified header file
To disable symbolic dimension propagation, search for ‘Allow symbolic dimension specification’ in the Configuration Parameters dialog box and clear the checkbox.
How to resolve this issue? embedded coder, storage classes MATLAB Answers — New Questions