MATLAB Answers

0

Custom storage classes for code generation

Asked by Leopoldo Rodriguez on 22 Jul 2019
Latest activity Edited by Nick Sarnie on 15 Aug 2019
I have created a custom storage class for constant parameters using the custom storage class designer, I have selected a constant memory sectio with exported data scope and checked on the "For Parameters" box. When I use that paramete from my data dictionary I am having errors in certain blocks like input ports
Parameter 'PortDimensions' of 'Model' is non-tunable but refers to tunable variables (ConstantParameter (base workspace))
How can I fix this?

  0 Comments

Sign in to comment.

1 Answer

Answer by Nick Sarnie on 15 Aug 2019
Edited by Nick Sarnie on 15 Aug 2019

Hi Leopoldo,
It looks like you are trying to use the custom storage class parameter in a block parameter that is not tunable. This means it will cannot have a variable in the generated code. PortDimemsions is an example of this because the code needs to be regenerated if the dimensions change. You can only use the custom parameter in block parameters that are tunable.
Thanks,
Nick

  0 Comments

Sign in to comment.